logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BillWorker 2i Development Team <billwor...@info.com.np>
Subject configuration error
Date Mon, 11 Jun 2001 05:13:30 GMT

My configuration file:
      1 log4j.rootCategory=debug, stdout, R, email
      4 # standard output
      5 log4j.appender.stdout=org.apache.log4j.FileAppender
      6 log4j.appender.stdout.File=System.out
      7 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
      8 log4j.appender.stdout.layout.ConversionPattern=%5p (%F:%L) -
     10 # file appender
     11 log4j.appender.R=org.apache.log4j.RollingFileAppender
     12 log4j.appender.R.File=mylogfile.log
     13 log4j.appender.R.MaxFileSize=100KB
     14 log4j.appender.R.MaxBackupIndex=3
     15 log4j.appender.R.layout=org.apache.log4j.PatternLayout
     16 log4j.appender.R.layout.ConversionPattern=%d %p - %m%n
     18 # email appender
     19 log4j.appender.email=org.apache.log4j.net.SMTPAppender
     20 log4j.appender.email.To=someone@somewhere.com
     21 log4j.appender.email.From=someone@somewhere.com
     22 log4j.appender.email.Subject=something important
    23 log4j.appender.email.SMTPHost=my.mailserver.com
    24 log4j.appender.email.layout=org.apache.log4j.PatternLayout
     25 log4j.appender.email.layout.ConversionPattern=%d - %m%n

The error  message I am getting:
log4j:ERROR No appenders could be found for category (billworker.lifts).
log4j:ERROR Please initialize the log4j system properly.

My problem:
I log most of the stuff under billworker category, and all was working
fine, except email.

Then when I added a servlet with billworker.lift category things I got
this error. I have not modified my log4j.conf file that I use to
configure the log4j system.

My Questions:
Why is this the case? Should billworker.lifts just take the appenders
from the root category?

Also why is the email not working? It works when I use the same
configuration file with the SMTP test program in the log4j source

How do I make the email send an email for each log message instead of
batch emails?

I am using version 1.0.4!
BillWorker 2i Development Team,
Infocom Solutions Pvt. Ltd.

To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

View raw message