logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wacht Woord" <wachtwo...@gmail.com>
Subject log4cc not working as intended
Date Fri, 26 Sep 2008 21:57:35 GMT
Dear mailing list,

I've tried to get log4cxx working under Visual studio 2008 and after
building the libs and dll it generally seemed two work. However after
some initial testing it does not:

1)  When running the steps on: http://logging.apache.org/log4cxx/index.html
I get the following result:

C:\Documents and Settings\Kevin1\My Documents\Visual Studio 2008\Projects\Test\D
ebug>Test.exe
0 [0x000000e8] INFO MyApp null - Entering application.
0 [0x000000e8] DEBUG com.foo.bar null - Did it again!
0 [0x000000e8] INFO MyApp null - Exiting application.

C:\Documents and Settings\Kevin1\My Documents\Visual Studio 2008\Projects\Test\D
ebug>Test.exe
0 [0x00000ec0] INFO MyApp null - Entering application.
0 [0x00000ec0] DEBUG com.foo.bar null - Did it again!
0 [0x00000ec0] INFO MyApp null - Exiting application.

instead of the expected:

0    [12345] INFO  MyApp  - Entering application.
36   [12345] DEBUG com.foo.Bar  - Did it again!
51   [12345] INFO  MyApp  - Exiting application.

2) when expanding the logging with additional Appenders the result is the same.

3) I tried using NDC calls from trivial.cpp:
NDC::push("trivial context"); and NDC::pop();

 another test-app you provide and get illegal memory violations.

Basically I just want a logger which logs to a file. It doesn't have
to be anything fancy.

Could you help me out?

regards,

kevin

Mime
View raw message