HardySimpson/zlog — pull request #25 by insop (2013-02-05 04:52:49+00:00)
Title: Fix issue 23 to get the sys log working

---------------------------------
Fix test report
---------------------------------

- test result after the fix
$ ../src/zlog-chk-conf test_syslog.conf
--[test_syslog.conf] syntax right

- test run
$ ./test_syslog

- syslog output
Feb 4 20:51:34 neon test_syslog[784]: defalut - 2013-02-04 20:51:34.02s INFO (syslog_cat:test_syslog.c:main:49) - hello, zlog -- info
Feb 4 20:51:34 neon test_syslog[784]: defalut - 2013-02-04 20:51:34.02s ERROR (syslog_cat:test_syslog.c:main:50) - hello, zlog -- error

---------------------------------
issue report
---------------------------------
test_syslog failed with this message
"init failed"

1a160f7
latest-stable on master

System info
$ uname -a
Linux 3.2.0-33-generic #52-Ubuntu SMP Thu Oct 18 16:29:15 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$ gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

"zlog-chk-conf" output
$ zlog-chk-conf test_syslog.conf
02-04 20:12:30 ERROR (31592:conf.c:508) not in any section
02-04 20:12:30 ERROR (31592:conf.c:324) parse configure file[test_syslog.conf]line_no[1] fail
02-04 20:12:30 ERROR (31592:conf.c:325) line[@ignore_error_format_rule false]
02-04 20:12:30 ERROR (31592:conf.c:170) zlog_conf_build_with_file fail
02-04 20:12:30 ERROR (31592:zlog.c:83) zlog_conf_new[test_syslog.conf] fail
02-04 20:12:30 ERROR (31592:zlog.c:142) zlog_init_inner[test_syslog.conf] fail
02-04 20:12:30 ERROR (31592:zlog.c:156) ------zlog_init fail end-----