Re: dynamic log file
Pete: You can use parameter substituion in the configuration file to determine the path of the log file(s). For example: # A1 is set to be a RollingFileAppender for debugging noise. log4j.appender.A1=org.apache.log4j.RollingFileAppender log4j.appender.A1.File=${user.debugLog} ${user.debugLog} substitutes the value the System Property user.debugLog for the log file name. I am new in the mail group. Hope I have understood and answered your question. Bill Blalock Peter Choe choepete@mindsprTo: [EMAIL PROTECTED] ing.com cc: Subject: dynamic log file 09/03/2002 01:54 PM Please respond to Log4J Users List is there a way to tell dynamically where the out put for the log file can go? i want a servlet to read a file parameter which will tell the servlet which file to use to log output. Peter -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Conversion character for system properties?
Have you tried variable substitution within a layout pattern in the configuration file? I tried a quick test similar to ...ConversionPattern=[%t] %-5p %c - ${user.name} - %m%n and the value of the System Property user.name was substituted in my log file. Dan Walker walkerdan2@attbiTo: [EMAIL PROTECTED] .comcc: Subject: Conversion character for system properties? 08/28/2002 09:55 AM Please respond to Log4J Users List Hi, I would like to make the system property user.name show up in each log entry. Is there a conversion character for this purpose or some other (easy) way of getting what I want? Thanks, Dan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Deployment of an application on multiple instances running on the samemachine
Hello: The configuration class can read a system property and substitute it. You can build a unique log name for each instance of the application, assign it to a system property, and use that value for the log file name. Regards Bill Blalock Patrice Thiebaud patrice.thiebaudTo: [EMAIL PROTECTED] @bea.comcc: Subject: Deployment of an application on multiple instances running on the same 08/29/2002 12:24 machine PM Please respond to Log4J Users List Hi, Sorry if my question has already been answered. I need to deploy an application on multiple instances of WebLogic Server running on the same machine, with the same log4j configuration file. I would like to have a specific log file used for each WLS instance. How can it be done ? Thanks in advance. -- Patrice Thiebaud - Presales Senior Consultant BEA Systems - France Tour Manhattan 6 place de l'Iris 92095 PARIS La Défense Cédex Tel: 33 1 41 45 70 27 Mobile: 06 08 05 95 95 -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]