Hi,
I've got a weird problem on Win 2000/Tomcat config which *does* work under Solaris.

I'm using the following config file :

# logging DEBUG level and up - using appender 'fileout' to handle all output
log4j.rootLogger=debug, fileout

# this appender uses an output file
log4j.appender.fileout=org.apache.log4j.RollingFileAppender
log4j.appender.fileout.File=c:/mylog.log

log4j.appender.fileout.MaxFileSize=10000KB
# Keep one backup file
log4j.appender.fileout.MaxBackupIndex=1

log4j.appender.fileout.layout=org.apache.log4j.PatternLayout
# output will look something like:
# <date>     <time>       <thread> <log level>  <class log msg has originated from>    
<msg> 
# 2002-05-21 13:05:18,341 [jcp-2]  INFO         db.DatabaseServices                  - 
Database properties loaded.
log4j.appender.fileout.layout.ConversionPattern=%d [%t] %-5p %c - %m%n


which is passed into Tomcat as:

set CATALINA_OPTS=%CATALINA_OPTS% "-Dlog4j.configuration=logging.properties"

and console logging:

log4j:WARN Failed to set property [file] to value "c:/mylog.log". object is not
an instance of declaring class
log4j:WARN Failed to set property [maxBackupIndex] to value "1". object is not a
n instance of declaring class
log4j:WARN Failed to set property [maxFileSize] to value "10000KB". object is no
t an instance of declaring class
log4j:WARN File option not set for appender [fileout].
log4j:WARN Are you using FileAppender instead of ConsoleAppender?
log4j:ERROR No output stream or file set for the appender named [fileout].

The logging.properties file is being found by the classloader - however, some config 
problems - any ideas?

Thanks in advance, Chris.





Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to