Logging is configured via the ini file. If you look at your ini file, you'll notice it has these sections (probably more, I only cut a section of my ini file) or similar sections:
# Logging configuration [loggers] keys = root, routes, sqlalchemy [handlers] keys = console, logfile [formatters] keys = generic [logger_root] level = INFO handlers = console [logger_routes] level = INFO handlers = qualname = routes.middleware # "level = DEBUG" logs the route matched and routing variables. These settings are used to configure the logging module with a call to logging.fileConfig. http://docs.python.org/library/logging.html#logging.fileConfig That help? On Dec 13, 11:47 am, Bobby <[email protected]> wrote: > I thought that import set up a library of functions and classes for me > to call, but I dont understand how it knows what I have configured. > > The line I am referring to in the documentation > ishttp://docs.python.org/library/logging.html > 15.7.4. Module-Level Functions > > logging.getLogger([name]) > > **All calls to this function with a given name return the same logger > instance. This means that logger instances never need to be passed > between different parts of an application.** > > I have been working with python and pylons for about 2 months now, so > am still very new. > > I look forward to participating in the pylons community. > > Thank you in advance for any help on this matter. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
