为什么我的log文件里面无内容?

phone_sir 发布于 2012/06/20 17:23
阅读 314
收藏 0

@难易 你好,想跟你请教个问题:

log文件里面什么也没有

zlog.err.log里面的内容如下:

06-20 17:17:53 ERROR (12214:zlog.c:804) ------zlog_profile start------
06-20 17:17:53 ERROR (12214:zlog.c:805) init_flag:[1]
06-20 17:17:53 ERROR (12214:level.c:246) level:* = 0, 6
06-20 17:17:53 ERROR (12214:level.c:246) level:DEBUG = 20, 7
06-20 17:17:53 ERROR (12214:level.c:246) level:INFO = 40, 6
06-20 17:17:53 ERROR (12214:level.c:246) level:NOTICE = 60, 5
06-20 17:17:53 ERROR (12214:level.c:246) level:WARN = 80, 4
06-20 17:17:53 ERROR (12214:level.c:246) level:ERROR = 100, 3
06-20 17:17:53 ERROR (12214:level.c:246) level:FATAL = 120, 1
06-20 17:17:53 ERROR (12214:level.c:246) level:UNKNOWN = 254, 3
06-20 17:17:53 ERROR (12214:level.c:246) level:! = 255, 6
06-20 17:17:53 ERROR (12214:conf.c:442) ---conf[0xb7dfe2e0]---
06-20 17:17:53 ERROR (12214:conf.c:443) file:[/tmp/zlog.conf],mtime:[2012-06-20 16:38:36]
06-20 17:17:53 ERROR (12214:conf.c:444) ignore_error_format_rule:[0]
06-20 17:17:53 ERROR (12214:conf.c:445) buf_size_min:[1024]
06-20 17:17:53 ERROR (12214:conf.c:446) buf_size_max:[0]
06-20 17:17:53 ERROR (12214:conf.c:447) rotate_lock_file:[/tmp/zlog.lock]
06-20 17:17:53 ERROR (12214:conf.c:449) default_format:
06-20 17:17:53 ERROR (12214:format.c:183) format:[0x9687a18][default]-[%d(%F %T) %V [%p:%F:%L] %m%n]
06-20 17:17:53 ERROR (12214:conf.c:452) ---rules[0x967f3c8]---
06-20 17:17:53 ERROR (12214:rule.c:725) rule:[0x98f01a0][my_cat.0]-[/tmp/hello.log,0*0][0x97bbe90]
06-20 17:17:53 ERROR (12214:conf.c:457) ---formats[0x9675248]---
06-20 17:17:53 ERROR (12214:format.c:183) format:[0x97bbe90][simple]-[%d(%m-%d %T) %-5V [%p:%F:%L] %m%n]
06-20 17:17:53 ERROR (12214:thread.c:260) ---tmap[0xb7e00314]---
06-20 17:17:53 ERROR (12214:thread.c:263) thread:[-1212152144]
06-20 17:17:53 ERROR (12214:category.c:273) ---cmap[0xb7e00318]---
06-20 17:17:53 ERROR (12214:category.c:276) category:[my_cat]
06-20 17:17:53 ERROR (12214:zlog.c:814) ------zlog_profile end------

请问是什么情况呢?

加载中
0
难易
难易

06-20 17:17:53 ERROR (12214:category.c:276) category:[my_cat]

从这一行来看,分类里面没有规则,很怪,一般来说my_cat应该匹配上面那条规则

06-20 17:17:53 ERROR (12214:rule.c:725) rule:[0x98f01a0][my_cat.0]-[/tmp/hello.log,0*0][0x97bbe90]

能贴下代码么?

返回顶部
顶部