I'm writting the logger part of it and some questions came to me
- in a new quickstarted project how does the log object knows to which handlers it should write?
- what is/are the diferences of having a logger in code or having it in the .cfg file
== loggers == This is a another way to create [http://docs.python.org/lib/node341.html Logger Objects] You can either define them here or do the calls in your code, it depends on your situation/taste there for I'll make a reference to the method call and you will know how to do it both ways and I'll type it = name of this logger, log=logging.getLogger(qualname) if omitted this is the root logger log=logging.getLogger() = level = log.setLevel(level) = handlers = handlers is a list so for handler in handlers: log.addHandlers(handler) = propagate = log.propagate=propagate
- where inside turbogears are logger instances uses?
- if I do a mix of code lvl logger objects and cfg level object and
- which will be the best way of executing a logging.addLevelName (I want to provide a patch so custom levels can be created, how about adding a [[customLevel]] where each lvl 3 will be the name with one key with the level #, and then use them the same way formatters are used.
- which is the preferred way to have an entry in log.cfg or to load with loggger.getLogger.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

