Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #67656
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <ikorot01@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.022 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'essentially': 0.04; 'constructor': 0.09; 'referenced': 0.09; 'wrong,': 0.09; 'length.': 0.16; 'missing?': 0.16; 'subject:Logging': 0.16; 'all,': 0.19; 'properly': 0.19; 'example': 0.22; 'question': 0.24; 'class.': 0.26; 'logging': 0.26; 'second': 0.26; 'pass': 0.26; 'tried': 0.27; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'object.': 0.31; 'file': 0.32; 'class': 0.32; 'another': 0.32; 'url:python': 0.33; 'running': 0.33; 'could': 0.34; 'knows': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'doing': 0.36; 'hi,': 0.36; 'url:org': 0.36; 'should': 0.36; 'thank': 0.38; 'to:addr:python-list': 0.38; 'fact': 0.38; 'explain': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'new': 0.61; 'information': 0.63; 'results': 0.69; 'different.': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=/rubRltKUfqipc0UILFpeH8TQkLJ/7chfXrPS+58ZtU=; b=vPywf4w1cv3BSNT8j26gnG+eSu6fYqs2TSO44ZiUtsiknF1TkRUJVfHVrpIIQsMOa1 5HRIPeR5QpWNmwAgAoFJH7P6Rz8p0ITiqzD4LPVwkVl2llhtvlZ/nq6MNn/aSxUamMD2 uomEZa3f3jd0XSbxY56//IK+did1sFGLo2R96hGPfrs/WMYPvs9yq7WK0ItMFLDkQ4F+ k1hBX1/LZaGalARTnFSTESLjhRp+k1Pz0RaKeFhXG13LqU5jQoaNILwFHdntrDuOveBU b8RWAzxKGzmmsMiREKjpvsX8LDzpzV305VtpUwo5SaGKovAQ+gpErujSb+ETrMMtx7N2 F/RA== |
| MIME-Version | 1.0 |
| X-Received | by 10.52.126.107 with SMTP id mx11mr1421176vdb.41.1393927337944; Tue, 04 Mar 2014 02:02:17 -0800 (PST) |
| Date | Tue, 4 Mar 2014 02:02:17 -0800 |
| Subject | Logging |
| From | Igor Korot <ikorot01@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.7698.1393927340.18130.python-list@python.org> (permalink) |
| Lines | 23 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1393927340 news.xs4all.nl 2832 [2001:888:2000:d::a6]:59202 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:67656 |
Show key headers only | View raw
Hi, ALL, Could someone please explain to me how the code in http://docs.python.org/2/howto/logging#logging-from-multiple-modules works? In particular I'm interested in how the mylib.py knows about the myapp.log. What I mean is: logging object is not passed to mylib.py, so essentially it should create a new instance of the logging object. What am I missing? But this question comes from the following fact about my application. I tried to create a logging object which will store the logging information to the file in the main class. Then I pass this object to another class constructor and use it in that second class. Upon running everything is OK, but when the program successfully finishes, the log file has 0 length. AFAIU, I'm doing it properly and the example referenced is wrong, yet the results are completely different. Thank you for any expplanation.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Logging Igor Korot <ikorot01@gmail.com> - 2014-03-04 02:02 -0800
csiph-web