Just in case anybody else wants local time in the current version, I've
attached two files to provide this facility.
You must call init_dated_local() prior to calling log4c_init(), e.g.
if (init_dated_local() || log4c_init()) {
err(EXIT_FAILURE, "log4c_init() failed");
}
Compile layout_type_dated_local.c as normal, e.g
gcc -c layout_type_dated_local.c
Link along these lines
gcc -o a.out <project_files> layout_type_dated_local.o -llib4c
Use via log4crc e.g.
<appender name="stdout" type="stream" layout="dated_local"/>
That's it.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1314576
Title:
Upgrade to 1.2.4
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/log4c/+bug/1314576/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs