Hi Reddy,
Thanks for your reply. I am using log4j-1.2.8.jar, the properties files are 
loaded from the classpath I do not load the file.
In Linux log4j is loaded, but prints only the very first line of the log 
message and stops.
Regards,
Vijay



-----Original Message-----
From: Reddy, Ramachandra [mailto:rre...@firstmarblehead.com]
Sent: Tuesday, April 27, 2010 5:55 PM
To: Log4J Users List
Subject: RE: Problem with linux


Check if you have different log4j.jar in your classpath on linux
machine.
I guess log4j-1.4.jar and above supports only log4j.xml and not
log4j.properties.

If log4j.properties try loading it as
        PropertyConfigurator.configure(logFileURL);

If log4j.xml try loading it with
                DOMConfigurator.configure(logFileURL);

Most likely you have higher version of log4j in your linux
environment.So try to add log4j.xml and use this line of code
                DOMConfigurator.configure(logFileURL);
And see if it works.


-----Original Message-----
From: Vijayakumar [mailto:vijaya.ku...@works.gov.bh]
Sent: Tuesday, April 27, 2010 9:38 AM
To: log4j-user@logging.apache.org
Subject: Problem with linux

Hi There,
I try to use log4j in my application, here is my property file

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L
- %m%n
log4j.rootLogger=debug, stdout

I see all INFO and DEBUG messages in local windows system, while I move
my application to linux system I see only the very first line of the log
message, rest of the line are not displayed.
What might be the problem, kindly help me out.
Regards,
Viajay



________________________________


DISCLAIMER
*******************
This e-mail message and any file(s) transmitted with it are solely for
the intended recipient(s) and may contain confidential, privileged or
copyright information. If you have received this communication in error,
please notify the sender immediately and delete this message and any
attachments from your system. Any views expressed in this message are
those of the individual sender. Ministry of Works (MOW), or any other
related subsidiary, entities or a person does not accept liability for
any damage caused by this e-mail. Internet communication cannot be
guaranteed to be timely, secure, error or virus free. The sender does
not accept liability for any errors or omissions
*This e-mail and any attachments may contain content protected
under federal law and is also confidential and proprietary in nature.
If you received this message in error, please notify the sender
immediately and delete the original and destroy all copies of the
message and any attachments. Any other use of this e-mail by you
including retaining, using, copying, distributing, or otherwise
disclosing this information in any manner is prohibited.



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org




DISCLAIMER
*******************
This e-mail message and any file(s) transmitted with it are solely for the 
intended recipient(s) and may contain confidential, privileged or copyright 
information. If you have received this communication in error, please notify 
the sender immediately and delete this message and any attachments from your 
system. Any views expressed in this message are those of the individual sender. 
Ministry of Works (MOW), or any other related subsidiary, entities or a person 
does not accept liability for any damage caused by this e-mail. Internet 
communication cannot be guaranteed to be timely, secure, error or virus free. 
The sender does not accept liability for any errors or omissions

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org

Reply via email to