| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.

View
 

ErrorLogging

Page history last edited by PBworks 13 years, 2 months ago


 

It is complicated, because it can do *much* more than just write to file: emailing logs, logging to HTTP, TCP, UDP, SOAP servers, logging to Unix syslog and NT's event log.

 

BTW typical Java solution: does scale up but not down. In 2.4, basicConfig() scales down

 

Examples

 

Articles

Short overview

ONLamp (2005)

IBM devel (2007) extended logging: store in SQLite db for later comparison

 

Official docs

 

from author - API docs - config file format

 

Tips, best practices

 

  • use %r instead of %s or %d. if exceptions have been raised trying to log about an exception caused by incorrect data being passed in, e.g. string instead of a int. The repr form ensures that something sane will be logged

Comments (0)

You don't have permission to comment on this page.