ok, i change it and now it works
 
John

________________________________

Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Verzonden: vrijdag 20 juli 2007 17:50
Aan: [email protected]
Onderwerp: RE: Appender question



Is it because the appender name isn't "logtst", rather it's "R1"?

 

Cheers!

 

Tom Hawker

Senior Framework Developer

Home

+1 (408) 274-4128

Office

+1 (408) 576-6591

Mobile

+1 (408) 835-3643

 

________________________________

From: Boer den, Johan J (NSC) [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 20, 2007 12:14 AM
To: [email protected]
Subject: Appender question

 

Hello,

 

I have a question. I get a core dump when I do

 

all include files and namespaces are set

 

PropertyConfigurator::configure("log4cxx.properties");

LoggerPtr logger = Logger::getLogger("logtst");

 

FileAppenderPtr appender = logger->getAppender("logtst");

 

cout << "filename = " << appender->getFile() << endl;

 

this gives a core dump on appender->getFile()

 

How can I get the appender instance and find out what file is attached ?

 

what am I doing wrong

 

the log4cxx.properties file

 

log4j.logger.logtst=DEBUG, R1

log4j.appender.R1=org.apache.log4j.FileAppender

log4j.appender.R1.layout.TimeZone=Europ/Amsterdam

log4j.appender.R1.File=logtst.log

log4j.appender.R1.MaxbackupIndex=7

log4j.appender.R1.layout=org.apache.log4j.TTCCLayout

log4j.appender.R1.layout=org.apache.log4j.PatternLayout

log4j.appender.R1.layout.ConversionPattern=%d{%d-%m-%y %H:%M,%Q} [%t]
%-5p %c{2} - %m%n

 

 

regards

 

Johan den Boer

Dutch railway

------------------------------------------------------------------------
------------------ Deze e-mail, inclusief eventuele bijlage(n), is
uitsluitend bestemd voor gebruik door de geadresseerde(n). Indien u dit
bericht abusievelijk heeft ontvangen, mag de informatie daarvan niet
worden gebruikt of openbaar gemaakt, noch aan derden worden verstrekt.
Wij verzoeken u om in dat geval direct contact op te nemen met de
afzender en de e-mail te vernietigen. This e-mail, including any
appendix or appendices, is intended solely for use by the addressee(s).
If you have received this message in error, the information it contains
may not be used or disclosed, nor may it be revealed to third parties.
In that case, please contact the sender immediately and destroy the
e-mail. 





IMPORTANT NOTICE
Email from OOCL is confidential and may be legally privileged. If it is
not intended for you, please delete it immediately unread. The internet
cannot guarantee that this communication is free of viruses,
interception or interference and anyone who communicates with us by
email is taken to accept the risks in doing so. Without limitation, OOCL
and its affiliates accept no liability whatsoever and howsoever arising
in connection with the use of this email. Under no circumstances shall
this email constitute a binding agreement to carry or for provision of
carriage services by OOCL, which is subject to the availability of
carrier's equipment and vessels and the terms and conditions of OOCL's
standard bill of lading which is also available at http://www.oocl.com.
        

------------------------------------------------------------------------------------------
Deze e-mail, inclusief eventuele bijlage(n), is uitsluitend bestemd voor 
gebruik door de 
geadresseerde(n). Indien u dit bericht abusievelijk heeft ontvangen, mag de 
informatie 
daarvan niet worden gebruikt of openbaar gemaakt, noch aan derden worden 
verstrekt. Wij verzoeken u om in dat geval direct contact op te nemen met de 
afzender en de e-mail te vernietigen.

This e-mail, including any appendix or appendices, is intended solely for use 
by the 
addressee(s). If you have received this message in error, the information it 
contains 
may not be used or disclosed, nor may it be revealed to third parties. In that 
case, 
please contact the sender immediately and destroy the e-mail.

Reply via email to