On 18/05/11 03:09, Fei wrote:
On May 17, 6:55 pm, Ian Kelly<ian.g.ke...@gmail.com>  wrote:
On Tue, May 17, 2011 at 2:55 PM, Fei<mail2...@gmail.com>  wrote:
where is default logging file on Mac? I saw lots of app just import
logging, and begins to logging.info(...) etc.  I'm not sure where to
look at the logging configuration to figure out the log location.
There is no default log file.  You're seeing that because logging only
needs to be configured by the program once, not on a per-module basis.
  Thus most modules will just do import logging on the assumption that
the configuration has already been performed somewhere else.

If no logging configuration is done at all, then the logging
statements will have no effect.
Thanks Ian.
That's not exactly how it works. You can use logging without any configuration and the default output will be console. In addition default logging level is warning, so:

logging.info("Some text")

won't  show anything and

logging.warning("Other text")

will show:

WARNING:root:Other text

Please check the link I gave before.

Bye


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to