On Wed, Jun 23, 2010 at 8:07 PM, Peng Yu <span dir="ltr"><<a href="mailto:pengyu.ut@gmail.com">pengyu.ut@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">I tried to put the above code in a module. Say in a.b.__init__.py</div></div>
<br>
%(module)s only print to "__init__". However, I need the fullname<br>
a.b.__init__. I looked at the manual, but I don't see what format<br>
string I should supply. Would you please let me know?</blockquote><div><br></div><div>If you look at the manual you'll find: </div><div><br></div><div><a href="http://docs.python.org/library/logging.html#formatter">http://docs.python.org/library/logging.html#formatter</a></div>
<div><br></div><div>To which %(pathname)s appears to be what you're looking for.</div><div><br></div><div>--S</div></div>