Re: [pygccxml-development] How to customize log messages?
Brought to you by:
mbaas,
roman_yakovenko
From: Matthias B. <ba...@ir...> - 2006-04-24 16:57:44
|
Roman Yakovenko wrote: >> Sorry, my question was not what messages does pygccxml output but what >> mechanism does it use to output the messages? (because it cannot use the >> _logging_ module as this one is part of pyplusplus and pygccxml is >> supposed to be independent of pyplusplus) > > Matthias, may be I can not explain my self or I don't understand you. > Both projects use Python logging module, I am not going to reinvent the wheel! > py++ creates/configures logger in _logging_ package, while pygccxml in > utils package. ok, I think now I got it that the main purpose of the _logging_ module is to initialize/configure the logger and maybe not to so much to provide the loggers. I think I was mainly confused because in pyplusplus the logger was also obtained via _logging_ whereas pygccxml cannot do this and instead initializes its logger in an __init__ module. It was just the presence of two different approaches that has confused me. - Matthias - |