[prev in list] [next in list] [prev in thread] [next in thread]
List: log4j-user
Subject: RE: Problem with linux
From: "Baskaradoss, B - SPLXM" <Balaji.Baskaradoss () klm ! com>
Date: 2010-04-28 8:13:46
Message-ID: 9F08154CF3D58C42822ED10999713AF001B990F6 () KL1221TC ! cs ! ad ! klmcorp ! net
[Download RAW message or body]
Hi Vijay,
Here's how s my log4j looks like,
Like below I made the debug to true, Can you tell me in which log I can check, I have \
server.log ( since our AS is jboss ), but there is no such info about log4j other \
than resource: log4j.xml configured. It fails to roll over sometimes but there is no \
such info why it is failing to roll over, And I have console.log..
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true">
<!-- ================================= -->
<!-- Preserve messages in a local file -->
<!-- ================================= -->
<!-- A time/date based rolling appender -->
<appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="File" value="${jboss.server.log.dir}/server.log"/>
<param name="Append" value="false"/>
<!-- Rollover at midnight each day -->
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<!-- Rollover at the top of each hour
<param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
-->
<layout class="org.apache.log4j.PatternLayout">
<!-- The default pattern: Date Priority [Category] Message\n -->
<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
<!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
<param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
-->
</layout>
</appender>
.
.
.
.
.
Regards,
Balaji
-----Original Message-----
From: Vijayakumar [mailto:Vijaya.kumar@works.gov.bh]
Sent: Wednesday, April 28, 2010 10:09 AM
To: Log4J Users List
Subject: RE: Problem with linux
Hi Balaji,
Enable your log4j debug log4j.debug=true and check the output.
Regards,
Vijay
-----Original Message-----
From: Baskaradoss, B - SPLXM [mailto:Balaji.Baskaradoss@klm.com]
Sent: Wednesday, April 28, 2010 11:05 AM
To: Log4J Users List
Subject: RE: Problem with linux
Hi,
Even I have the similar issue. Something is overwriting my log4j configuration. Even \
I enabled the logger debug to true in log4j.xml. But I don't know where the trace is \
printing and how to get the traces. Can anyone help me out with this??
Regards,
Balaji
-----Original Message-----
From: Bender Heri [mailto:hbender@ergonomics.ch]
Sent: Wednesday, April 28, 2010 9:43 AM
To: 'Log4J Users List'
Subject: RE: Problem with linux
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.kumar@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:RReddy@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.kumar@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:RReddy@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-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
********************************************************
For information, services and offers, please visit our web site: http://www.klm.com. \
This e-mail and any attachment may contain confidential and privileged material \
intended for the addressee only. If you are not the addressee, you are notified that \
no part of the e-mail or any attachment may be disclosed, copied or distributed, and \
that any other action related to this e-mail or attachment is strictly prohibited, \
and may be unlawful. If you have received this e-mail by error, please notify the \
sender immediately by return e-mail, and delete this message.
Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees \
shall not be liable for the incorrect or incomplete transmission of this e-mail or \
any attachments, nor responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch Airlines) is \
registered in Amstelveen, The Netherlands, with registered number 33014286
********************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@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-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
</pre>********************************************************<br>For information, \
services and offers, please visit our web site: http://www.klm.com. This e-mail and \
any attachment may contain confidential and privileged material intended for the \
addressee only. If you are not the addressee, you are notified that no part of the \
e-mail or any attachment may be disclosed, copied or distributed, and that any other \
action related to this e-mail or attachment is strictly prohibited, and may be \
unlawful. If you have received this e-mail by error, please notify the sender \
immediately by return e-mail, and delete this message.<br><br>Koninklijke Luchtvaart \
Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for \
the incorrect or incomplete transmission of this e-mail or any attachments, nor \
responsible for any delay in receipt.<br>Koninklijke Luchtvaart Maatschappij N.V. \
(also known as KLM Royal Dutch Airlines) is registered in Amstelveen, The \
Netherlands, with registered number 3014286 \
<br>********************************************************<pre>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic