logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tun Lin" <chen...@singnet.com.sg>
Subject RE: Log4j configuration.
Date Fri, 28 Nov 2003 01:36:13 GMT
Hi Paul,

Thanks for your help and quick response but I still get the same error message
although there are some additional statements printed out after running the
following command as instructed by the last email.

Command typed:
java -Dlog4j.configuration=file:///c:/jarfiles/log4j.properties
-Dlog4j.debug=true org.pdfbox.searchengine.
lucene.LucenePDFDocument C:\\pdf\h6603lab4.pdf

Error message:
log4j: Using URL [file:/c:/jarfiles/log4j.properties] for automatic log4j config
uration.
log4j: Reading configuration from URL file:/c:/jarfiles/log4j.properties
log4j: Parsing for [root] with value=[stdout].
log4j: Level token is [stdout].
log4j: Category root set to DEBUG
log4j: Finished configuring.
log4j:WARN No appenders could be found for logger (org.pdfbox.pdfparser.PDFParse
r).
log4j:WARN Please initialize the log4j system properly. 

-----Original Message-----
From: Paul Smith [mailto:paul.smith@lawlex.com.au] 
Sent: Friday, November 28, 2003 9:22 AM
To: chentun@singnet.com.sg
Cc: log4j-user@jakarta.apache.org
Subject: RE: Log4j configuration.

Please add another system property switch:  

-Dlog4j.debug=true 

e.g.

java -Dlog4j.configuration=file://c:/jarfiles/log4j.properties
org.pdfbox.searchengine.lucene.LucenePDFDocument C:\\pdf\h6603lab4.pdf

and cut/paste what is displayed to standard out into an email to this list so
that we can see what is happening..

cheers,

Paul Smith

> You keep insisting on using non-url syntax for your setup even when 
> you reference the correct URL syntax.  Do this...
> 
> java -Dlog4j.configuration=file:/c:/jarfiles/log4j.properties
> org.pdfbox.searchengine.lucene.LucenePDFDocument C:\\pdf\h6603lab4.pdf
> 
> Also, why are you saying...
> c:\\jarfiles\log4j.properties
> 
> You are escaping the first "\", but not the second one in the path.  
> Shouldn't it be?...
> c:\\jarfiles\\log4j.properties
> 
> Anyway, you have to use the URL syntax above for things to work.  BTW, 
> I've also seen the URL file syntax on Windows be...
> file:///c:/jarfiles/log4j.properties
> 
> Use whichever one works for you.
> 
> Jake
> 
> At 05:01 PM 11/27/2003 +0800, you wrote:
> >Hi,
> >
> >I put my log4j.properties file in c:\\jarfiles and I did the following:
> >
> >java -Dlog4j.configuration=c:\\jarfiles\log4j.properties
> >org.pdfbox.searchengine.lucene.LucenePDFDocument 
> >C:\\pdf\h6603lab4.pdf
> >
> >But I get the following:
> >
> >log4j:WARN No appenders could be found for logger 
> >(org.pdfbox.pdfparser.PDFParser).
> >log4j:WARN Please initialize the log4j system properly.
> >
> >I read the manual at
> >
> >http://jakarta.apache.org/log4j/docs/manual.html
> >
> >It says the following needs to be done for Tomcat 4:
> >
> >For example:
> >set
> >CATALINA_OPTS=-Dlog4j.configuration=file:/c:/jarfiles/log4j.propertie
> >s
> >In the environment variables.
> >And I did just that.
> >Can I do the following?
> >
> >java -Dlog4j.configuration=c:\\jarfiles\log4j.properties
> >org.pdfbox.searchengine.lucene.LucenePDFDocument 
> >C:\\pdf\h6603lab4.pdf I can choose the ignore the error message but I 
> >would like to solve this problem before moving on.
> >Anyone can help?
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message