The IBM lib is overwriting your own log configuration, probably by a active 
configure() call. Either you do this in your code, or the library does it. In 
the first case you have search, in the second case you have to ask the IBM 
library support how to disable the behaviour, or how to configure the IBM log 
framework in order to have the desired behaviour. I assume somewhere in the IBM 
folders there is a log config file which contains some strings of the console 
output (e.g. "appldev.dklog"). Search for it and tweak that file. 
Heri

> -----Original Message-----
> From: Vijayakumar [mailto:vijaya.ku...@works.gov.bh]
> Sent: Wednesday, April 28, 2010 8:28 AM
> To: Reddy, Ramachandra
> Cc: Log4J Users List
> Subject: RE: Problem with linux
> 
> As I suspected the log file is loaded but while it logs the message I takes 
> the IBM log for content
> manager(I am working with IBM content manager API).
> I enabled the log4j debug log4j.debug=true and got these trace, how to direct 
> all the messages to my
> log file?
> 
> // starts loading my log4j.properties
> log4j: Parsing for [root] with value=[DEBUG, stdout, R].
> log4j: Level token is [DEBUG].
> log4j: Category root set to DEBUG
> log4j: Parsing appender named "stdout".
> log4j: Parsing layout options for "stdout".
> log4j: Setting property [conversionPattern] to [%d{ABSOLUTE} %5p %c{1}:%L - 
> %m%n].
> log4j: End of parsing for "stdout".
> log4j: Parsed "stdout" options.
> log4j: Parsing appender named "R".
> log4j: Parsing layout options for "R".
> log4j: Setting property [conversionPattern] to [%p %t %c - %m%n].
> log4j: End of parsing for "R".
> log4j: Setting property [file] to [log/edms-controller.log].
> log4j: Setting property [maxFileSize] to [100KB].
> log4j: Setting property [maxBackupIndex] to [1].
> log4j: setFile called: log/edms-controller.log, true
> log4j: setFile ended
> log4j: Parsed "R" options.
> log4j: Finished configuring.
> /// loaded log4j.properties
> 
> //application initialized
> 08:45:54,270  INFO EDMSController:44 - Initializing CM Connection......
> 
> // loads the IBM log propery
> log4j: Parsing for [root] with 
> value=[ERROR#com.ibm.mm.sdk.logtool.DKLogPriority_Log4J, apiAppender].
> log4j: Level token is [ERROR#com.ibm.mm.sdk.logtool.DKLogPriority_Log4J].
> 
> /////////IBM log propery
> log4j: toLevel:class=[com.ibm.mm.sdk.logtool.DKLogPriority_Log4J]:pri=[ERROR]
> log4j: Category root set to ERROR
> log4j: Parsing appender named "apiAppender".
> log4j: Parsing layout options for "apiAppender".
> log4j: Setting property [conversionPattern] to [%m%n].
> log4j: End of parsing for "apiAppender".
> log4j: Setting property [maxFileSize] to [1MB].
> log4j: Setting property [file] to 
> [/home/icmadmin/log/connectors/appldev.dklog.log].
> log4j: Setting property [maxBackupIndex] to [5].
> log4j: Setting property [append] to [true].
> log4j: setFile called: /home/icmadmin/log/connectors/appldev.dklog.log, true
> log4j: setFile ended
> log4j: Parsed "apiAppender" options.
> log4j: Parsing for [adminlogger] with 
> value=[ERROR#com.ibm.mm.sdk.logtool.DKLogPriority_Log4J,
> adminAppender].
> 
> 
> -----Original Message-----
> From: Reddy, Ramachandra [mailto:rre...@firstmarblehead.com]
> Sent: Tuesday, April 27, 2010 7:16 PM
> To: Vijayakumar
> Subject: RE: Problem with linux
> 
> Use the this
> log4j.appender.ROLLING.layout.ConversionPattern=[%d{MM-dd-yyyy HH:mm:ss,SSS}] 
> %-5p %c{1}:%L %m%n
> 
> (all in one line)
> 
> 
> 
> Some times this line will have number of characters to print which can cause 
> to over write stuff.
> 
> 
> 
> 
> -----Original Message-----
> From: Vijayakumar [mailto:vijaya.ku...@works.gov.bh]
> Sent: Tuesday, April 27, 2010 11:31 AM
> To: Reddy, Ramachandra
> Subject: RE: Problem with linux
> 
> Hi Reddy/Thorbjørn,
> I checked the file, only the first line is printed, I changed the setting to 
> console then also I see
> only the first line.
> 
> Regards,
> Vijay
> 
> 
> -----Original Message-----
> From: Reddy, Ramachandra [mailto:rre...@firstmarblehead.com]
> Sent: Tuesday, April 27, 2010 6:17 PM
> To: Vijayakumar
> Subject: RE: Problem with linux
> 
> Vijay,
> 
> Try using fold command on linux ..
> Eg if your log file name is
> 
> Mylog.log
> 
> 
> Try
> fold Mylog.log  > fold_Mylog.log
> 
> 
> now view fold_Mylog.log ...
> 
> see man page for fold.
> 
> *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.
> 
> 
> 
> 
> 
> 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.
> 
> 
> 
> 
> 
> 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


---------------------------------------------------------------------
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