Chinaunix首页 | 论坛 | 博客
  • 博客访问: 150711
  • 博文数量: 52
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 490
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-05 12:05
文章分类

全部博文(52)

文章存档

2013年(1)

2010年(3)

2009年(6)

2008年(25)

2007年(17)

我的朋友

分类: Python/Ruby

2013-09-13 11:36:26

  • Loggers expose the interface that application code directly uses.
  • Handlers send the log records (created by loggers) to the appropriate destination.
  • Filters provide a finer grained facility for determining which log records to output.
  • Formatters specify the layout of log records in the final output.

Multiple calls to  with the same name will return a reference to the same logger object.

bug mutiple call to 
addHandler for same logger will cause duplicate entries in log file. To solve the problem , make sure only one addHandler to on logger name. in other way, set propagate to false in logger config save the work too.

阅读(206) | 评论(0) | 转发(0) |
0

上一篇:perl fork -- how to controlls process numbers

下一篇:没有了

给主人留下些什么吧!~~