Logging Framework and Method printing

Discussion in 'Python' started by Senthoorkumaran Punniamoorthy, Apr 12, 2004.

  1. I was wondering when using Java's logging framework or Log4J whenever there
    is a log statement it prints the Method in which the log statement is being
    used. However in python this doesn't seems to be happening by default and
    seems like we have to specifically print this using

    inspect.getouterframes(inspect.currentframe())[1][3]

    Is there anyway by default I can enable the logging to print the method too?

    Senthoor

    _________________________________________________________________
    Add photos to your messages with MSN 8. Get 2 months FREE*.
    http://join.msn.com/?page=features/featuredemail
    Senthoorkumaran Punniamoorthy, Apr 12, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stefan Siegl
    Replies:
    0
    Views:
    949
    Stefan Siegl
    Aug 27, 2003
  2. janne
    Replies:
    0
    Views:
    9,471
    janne
    Sep 10, 2004
  3. Christoph Haas
    Replies:
    0
    Views:
    438
    Christoph Haas
    Jun 12, 2006
  4. Christoph Haas
    Replies:
    1
    Views:
    448
    Vinay Sajip
    Jun 14, 2006
  5. johnny
    Replies:
    1
    Views:
    634
    Dennis Lee Bieber
    Dec 12, 2006
Loading...

Share This Page