logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rafal Markut" <rafal.mar...@mediawave.de>
Subject Re: Log4j doesn't create log files
Date Tue, 02 May 2006 08:07:35 GMT
Hello,

in other projects I didn't have to define it. It worked without any problems 
(e.g. on my windows).

with best regards,
Rafal

----- Original Message ----- 
From: "Jacob Kjome" <hoju@visi.com>
To: "Log4J Users List" <log4j-user@logging.apache.org>
Sent: Friday, April 28, 2006 5:02 PM
Subject: Re: Log4j doesn't create log files


>
> Where did you expect the "applicationRoot" variable to come from?  If you 
> don't
> set it either within the properties file or as a Java system variable, 
> then why
> do you expect it to exist?
>
> Jake
>
> Quoting Rafal Markut <rafal.markut@mediawave.de>:
>
>> Hi,
>>
>> I solved my problem.
>>
>> I had: log4j.appender.*.file=${applicationRoot}/logs/*.log
>> but when I made:
>> log4j.appender.*.file=/usr/share/tomcat/webapps/firstsyst/logs/*.log
>> then it works.
>>
>> Why is the variable ${applicationRoot}not set ?
>>
>> with best regards,
>> Rafal
>>
>> ----- Original Message -----
>> From: "James Stauffer" <stauffer.james@gmail.com>
>> To: "Log4J Users List" <log4j-user@logging.apache.org>
>> Sent: Thursday, April 27, 2006 4:25 PM
>> Subject: Re: Log4j doesn't create log files
>>
>>
>> Use -Dlog4j.debug to see how it is being configured.
>>
>> On 4/27/06, Rafal Markut <rafal.markut@mediawave.de> wrote:
>> > Hello,
>> >
>> > I use Turbine 2.3.2 with Torque 3.1.1.
>> > In that turbine there is log4j-1.2.12.jar.
>> >
>> > It doesn't create on my linux server the log files (e.g. turbine.log).
>> >
>> > This same application I have on windows and everything works fine.
>> >
>> > My linux server and windows are using Tomcat 5.x
>> >
>> > In TurbineResources.properties:
>> >
>> > log4j.file = /WEB-INF/conf/log4j.properties
>> >
>> >
>> >
>> > In log4j.properties
>> >
>> > # ------------------------------------------------------------------------
>> > #
>> > # Logging Configuration
>> > #
>> > # $Id: log4j.properties,v 1.1 2006/03/30 14:35:01 rmarkut Exp $
>> > #
>> > # ------------------------------------------------------------------------
>> >
>> > #
>> > # If we don't know the logging facility, put it into the
>> > # turbine.log
>> > #
>> > log4j.rootLogger = INFO, app
>> >
>> > #
>> > # Turbine goes into Turbine Log
>> > #
>> > log4j.category.org.apache.turbine = INFO, turbine
>> > log4j.additivity.org.apache.turbine = false
>> >
>> > #
>> > # Torque has its own log file
>> > #
>> > log4j.category.org.apache.torque = INFO, torque
>> > log4j.additivity.org.apache.torque = false
>> >
>> > #
>> > # Velocity Logfile
>> > #
>> > log4j.category.velocity = INFO, velocity
>> > log4j.additivity.velocity = false
>> >
>> > #
>> > # Scheduler Category
>> > #
>> > log4j.category.scheduler = INFO, scheduler
>> > log4j.additivity.scheduler = false
>> >
>> > #
>> > # Avalon Logfile
>> > #
>> > log4j.category.avalon = INFO, avalon
>> > log4j.additivity.avalon = false
>> >
>> > ########################################################################
>> > #
>> > # Logfile definitions
>> > #
>> > ########################################################################
>> >
>> > #
>> > # turbine.log
>> > #
>> > log4j.appender.turbine = org.apache.log4j.FileAppender
>> > log4j.appender.turbine.file = ${applicationRoot}/logs/turbine.log
>> > log4j.appender.turbine.layout = org.apache.log4j.PatternLayout
>> > log4j.appender.turbine.layout.conversionPattern = %d [%t] %-5p %c - 
>> > %m%n
>> > log4j.appender.turbine.append = false
>> >
>> > #
>> > # torque.log
>> > #
>> > log4j.appender.torque = org.apache.log4j.FileAppender
>> > log4j.appender.torque.file = ${applicationRoot}/logs/torque.log
>> > log4j.appender.torque.layout = org.apache.log4j.PatternLayout
>> > log4j.appender.torque.layout.conversionPattern = %d [%t] %-5p %c - %m%n
>> > log4j.appender.torque.append = false
>> >
>> > #
>> > # Scheduler Output
>> > #
>> > log4j.appender.scheduler = org.apache.log4j.FileAppender
>> > log4j.appender.scheduler.file = ${applicationRoot}/logs/scheduler.log
>> > log4j.appender.scheduler.layout = org.apache.log4j.PatternLayout
>> > log4j.appender.scheduler.layout.conversionPattern = %d [%t] %-5p %c - 
>> > %m%n
>> > log4j.appender.scheduler.append = false
>> >
>> > #
>> > # Velocity gets configured to write its output onto the velocity
>> > # category.
>> > #
>> > log4j.appender.velocity = org.apache.log4j.FileAppender
>> > log4j.appender.velocity.file = ${applicationRoot}/logs/velocity.log
>> > log4j.appender.velocity.layout = org.apache.log4j.PatternLayout
>> > log4j.appender.velocity.layout.conversionPattern = %d [%t] %-5p %c - 
>> > %m%n
>> > log4j.appender.velocity.append = false
>> >
>> > #
>> > # Avalon gets configured to write its output onto the avalon
>> > # category.
>> > #
>> > log4j.appender.avalon = org.apache.log4j.FileAppender
>> > log4j.appender.avalon.file = ${applicationRoot}/logs/avalon.log
>> > log4j.appender.avalon.layout = org.apache.log4j.PatternLayout
>> > log4j.appender.avalon.layout.conversionPattern = %d [%t] %-5p %c - %m%n
>> > log4j.appender.avalon.append = false
>> >
>> > #
>> > # Application.log
>> > #
>> > log4j.appender.app = org.apache.log4j.FileAppender
>> > log4j.appender.app.file = ${applicationRoot}/logs/application.log
>> > log4j.appender.app.layout = org.apache.log4j.PatternLayout
>> > log4j.appender.app.layout.conversionPattern = %d [%t] %-5p %c - %m%n
>> > log4j.appender.app.append = false
>> >
>> > I don't get any error messages in catalina.out or localhost_log.*.txt
>> >
>> > Any ideas ? Did somebody has such problem before ?
>> >
>> > Thank you for help in advance.
>> >
>> > with best regads,
>> > Rafal
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> > For additional commands, e-mail: log4j-user-help@logging.apache.org
>> >
>> >
>>
>>
>> --
>> James Stauffer
>> Are you good? Take the test at http://www.livingwaters.com/good/
>>
>> ---------------------------------------------------------------------
>> 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
>>
>
>
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message