|
From: Ian P. <IPi...@Xe...> - 2006-09-07 08:25:03
|
help -----Original Message----- From: wra...@li... [mailto:wra...@li...] Sent: 06 September 2006 20:15 To: wra...@li... Subject: Wrapper-user Digest, Vol 4, Issue 4 Send Wrapper-user mailing list submissions to wra...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/wrapper-user or, via email, send a message with subject or body 'help' to wra...@li... You can reach the person managing the list at wra...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Wrapper-user digest..." Today's Topics: 1. Re: how to get log4j output to wrapper logfile to use trigger? (Phillip Gussow) ---------------------------------------------------------------------- Message: 1 Date: Wed, 6 Sep 2006 16:00:13 +0200 From: "Phillip Gussow" <pg...@co...> Subject: Re: [Wrapper-user] how to get log4j output to wrapper logfile to use trigger? To: <wra...@li...> Message-ID: <102...@ex...> Content-Type: text/plain; charset="windows-1252" Both loglevels need to be set to INFO: wrapper.console.loglevel=NONE must be: wrapper.console.loglevel=INFO Then the Log4J console appender output will appear in the wrapper.log file. Regards, Phillip -----Original Message----- From: wra...@li... on behalf of Ale...@st... Sent: Wed 9/6/2006 12:46 To: wra...@li... Cc: Subject: [Wrapper-user] how to get log4j output to wrapper logfile to use trigger? Hi, I'm using log4j to output log messages. Now the application is running inside the wrapper on linux and I would like to use the trigger mechanism. But the trigger is only locking for the stuff that is logged by the wrapper itself. I thought that if would let log4j do its output to STDOUT it would arrive in the wrapper logfile, but nothing appears in the wrapper logfile. Please, can someone tell me how to get the log4j-output to the wrapper log so I can use the trigger? Here is my configuration. wrapper.conf: ... # Trigger wrapper.filter.trigger.1=java.lang.OutOfMemoryError wrapper.filter.action.1=RESTART #******************************************************************** # Wrapper Logging Properties #******************************************************************** # Format of output for the console. (See docs for formats) wrapper.console.format=PM # Log Level for console output. (See docs for log levels) wrapper.console.loglevel=NONE # Log file to use for wrapper output logging. wrapper.logfile=/home/carlosad/bps/logs/wrapper.log # Format of output for the log file. (See docs for formats) wrapper.logfile.format=LPTM # Log Level for log file output. (See docs for log levels) wrapper.logfile.loglevel=INFO # Maximum size that the log file will be allowed to grow to before # the log is rolled. Size is specified in bytes. The default value # of 0, disables log rolling. May abbreviate with the 'k' (kb) or # 'm' (mb) suffix. For example: 10m = 10 megabytes. wrapper.logfile.maxsize=5m # Maximum number of rolled log files which will be allowed before old # files are deleted. The default value of 0 implies no limit. wrapper.logfile.maxfiles=1 # Log Level for sys/event log output. (See docs for log levels) wrapper.syslog.loglevel=NONE ... log4j.conf: ... <!-- STDOUT --> <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender"> <param name="Target" value="System.out" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d %-5p (%F:%L) # %m\n" /> </layout> </appender> <!-- STDERR --> <appender name="STDERR" class="org.apache.log4j.ConsoleAppender"> <param name="Target" value="System.err" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d %-5p [%t] %c %C{3} (%F:%L) # %m\n" /> </layout> </appender> ... <root> <priority value="warn" /> <appender-ref ref="FILE_ERROR" /> <appender-ref ref="STDOUT" /> <appender-ref ref="STDERR" /> </root> </log4j:configuration> Thanks in advance Alex **************************************************************************** *********************** The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. This email does not constitute any commitment from Cordys Holding BV or any of its subsidiaries except when expressly agreed in a written agreement between the intended recipient and Cordys Holding BV or its subsidiaries. **************************************************************************** *********************** -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 4869 bytes Desc: not available Url : http://sourceforge.net/mailarchive/forum.php?forum=wrapper-user/attachments/ 20060906/c81a74df/attachment.bin ------------------------------ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ------------------------------ _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user End of Wrapper-user Digest, Vol 4, Issue 4 ****************************************** |