Re: [Python-Dev] Passing contextual information when logging

2008-01-11 Thread Nick Coghlan
Vinay Sajip wrote: > When I check it in I will elaborate on the class docstring to explain the > usage > in a bit more detail, as well as of course detailing it in the docs in a > separate section entitled "Passing contextual information to the log" (or > similar). Thanks, I understand what you m

Re: [Python-Dev] Passing contextual information when logging

2008-01-11 Thread Vinay Sajip
Nick Coghlan gmail.com> writes: > It looks pretty good (and useful) to me, but I have a couple of questions. > > When you talk about stacking in the constructor docstring, do you mean > something like having LoggerAdapterA delegating to LoggerAdapterB which > in turn delegates to the real logg

Re: [Python-Dev] Passing contextual information when logging

2008-01-11 Thread Nick Coghlan
Vinay Sajip at Red Dove wrote: > One solution is to create a generic wrapper around loggers to which a logger > name and contextual information can be passed. The wrapper would delegate > logging calls to the logger with the specified name, but would manipulate > the arguments passed to the logging