Re: [trackback] bad in tools.make_logger
Steven Armstrong <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
On 01/21/06 11:40, Zoom Quiet wrote:
> when i flow
> http://pyblosxom.sourceforge.net/1.3/manual/x956.html
> to install trackback support,
> apache error:
> """....
> trackbak:
> tools.make_logger(logfile)
> [Sat Jan 21 18:49:10 2006] [error] [client 10.217.12.21] AttributeError
> [Sat Jan 21 18:49:10 2006] [error] [client 10.217.12.21] :
> [Sat Jan 21 18:49:10 2006] [error] [client 10.217.12.21] 'module'
> object has no attribute 'make_logger'
> """
> look like the version of Pyblosxom.py not support ools.make_logger() ??
> what happen?
>
> thanx for any suggest!
>
I deliberately dropped tools.make_logger when I rewrote the logging
system [1].
You'll have to make the following changes anywhere you bump into the
"object has no attribute 'make_logger'" exception.
old:
tools.make_logger('/path/to/file')
tools.log('some messages')
new:
log = tools.getLogger()
log.info('some info message')
log.debug('some debug message')
log.error('ops I did it again')
[1]
http://sourceforge.net/mailarchive/forum.php?thread_id=6946268&forum_id=24361
cheers
Steven
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642