logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "LI Daobing" <lidaob...@gmail.com>
Subject how to use log4cxx in library
Date Wed, 05 Jul 2006 20:06:36 GMT

is there any guideline on how to use log4cxx in library?

I tried use it in my library, but it seems does not work. I prepare a
test file in attachment. and when I run it, it crashed. gdb give
following information[1]. please help me, thanks.

(gdb) bt
#0  0x00002afd8d3c6536 in
log4cxx::helpers::AppenderAttachableImpl::appendLoopOnAppenders ()
from /usr/lib/liblog4cxx.so.9
#1  0x00002afd8d3f1838 in log4cxx::Logger::callAppenders () from
#2  0x00002afd8d3f19a0 in log4cxx::Logger::forcedLog () from
#3  0x0000000000402196 in main () at log4cxx.t.cpp:28

my platform and version info:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 3.1 (sarge)
Release:        3.1
Codename:       sarge
$ uname -a
Linux ldblab 2.6.17-1-em64t-p4-smp #1 SMP Thu Jun 29 23:35:33 CEST
2006 x86_64 GNU/Linux
$ dpkg -l liblog4cxx9-dev
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                      Version                   Description
ii  liblog4cxx9-dev           0.9.7-5                   A logging
library for C++ (development files)

LI Daobing

View raw message