Upgrade to 1.2.4
Bug #1314576 reported by
Joe Wood
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
log4c (Debian) |
Fix Released
|
Unknown
|
|||
log4c (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
I know you won't want to upgrade log4c in TT, but for the next release in October could we please move to the latest version 1.2.4, see sourceforge project page.
I'd like local time on my log messages not UTC. I could put a wrapper around the text message but it's not quite right.
Thanks
tags: | added: upgrade-software-version |
Changed in log4c (Debian): | |
status: | Unknown → New |
Changed in log4c (Debian): | |
status: | New → Fix Released |
To post a comment you must log in.
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.