You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Rajib Das <ra...@anshinsoft.com> on 2002/12/10 05:30:17 UTC
Urgent : Could not initialize Log4j
Hi,
Im using version 1.2.7. While running the application Im getting this
message ..
log4j:WARN No appenders could be found for logger (SERVICES).
log4j:WARN Please initialize the log4j system properly.
My Config file
# THE ROOT LOGGER
log4j.rootLogger=DEBUG, NULL
#Define own logger
log4j.logger.SERVICES=INHERIRED, A2
# Define the appender
log4j.appender.A2=org.apache.log4j.RollingFileAppender
log4j.appender.A2.MaxFileSize=10MB
log4j.appender.A2.MaxBackupIndex=1
log4j.appender.A2.layout=org.apache.log4j.TTCCLayout
log4j.appender.A2.layout.ContextPrinting=enabled
log4j.appender.A2.layout.DateFormat=ISO8601
log4j.additivity.SERVICES=false
Can anybody please tell me what is the problem?
Thanking in advance
Regards
Rajib
RE: Urgent : Could not initialize Log4j
Posted by Rajib Das <ra...@anshinsoft.com>.
Hi Carlos,
I've solved the problem. My application was not reading the Log4j config
properties file. Pls check your system for the same.
Regards
Rajib
-----Original Message-----
From: cgoncalves@visionweb.com.br [mailto:cgoncalves@visionweb.com.br]
Sent: Tuesday, December 10, 2002 5:50 PM
To: Log4J Users List
Subject: Re: Urgent : Could not initialize Log4j
Hello Rajib!
Excuse of entering in the middle of the conversation, but I am also with
difficulty of using the log4j with taglis.
An example exists using JSP, but the message below is shown:
log4j:ERROR In the appenders could be found goes category (root).
log4j:ERROR Please initialize the log4j system properly.
http://localhost:8080/log-examples/test1.jsp
is worked.
and even so the problem persists.
I am using Windows 98 and Apache Tomcat 4.0 - 4.0.3
What should make?
I ask for help
Carlos FG
Quoting Rajib Das <ra...@anshinsoft.com>:
> Hi,
>
>
>
> Im using version 1.2.7. While running the application Im getting
this
> message ..
>
>
>
> log4j:WARN No appenders could be found for logger (SERVICES).
>
> log4j:WARN Please initialize the log4j system properly.
>
>
>
>
>
>
>
> My Config file
>
>
>
>
>
> # THE ROOT LOGGER
>
> log4j.rootLogger=DEBUG, NULL
>
> #Define own logger
>
> log4j.logger.SERVICES=INHERIRED, A2
>
>
>
> # Define the appender
>
> log4j.appender.A2=org.apache.log4j.RollingFileAppender
>
> log4j.appender.A2.MaxFileSize=10MB
>
> log4j.appender.A2.MaxBackupIndex=1
>
> log4j.appender.A2.layout=org.apache.log4j.TTCCLayout
>
> log4j.appender.A2.layout.ContextPrinting=enabled
>
> log4j.appender.A2.layout.DateFormat=ISO8601
>
>
>
> log4j.additivity.SERVICES=false
>
>
>
>
>
> Can anybody please tell me what is the problem?
>
>
>
> Thanking in advance
>
>
>
> Regards
>
> Rajib
>
>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Urgent : Could not initialize Log4j
Posted by cg...@visionweb.com.br.
Hello Rajib!
Excuse of entering in the middle of the conversation, but I am also with
difficulty of using the log4j with taglis.
An example exists using JSP, but the message below is shown:
log4j:ERROR In the appenders could be found goes category (root).
log4j:ERROR Please initialize the log4j system properly.
http://localhost:8080/log-examples/test1.jsp
is worked.
and even so the problem persists.
I am using Windows 98 and Apache Tomcat 4.0 - 4.0.3
What should make?
I ask for help
Carlos FG
Quoting Rajib Das <ra...@anshinsoft.com>:
> Hi,
>
>
>
> Im using version 1.2.7. While running the application Im getting this
> message ..
>
>
>
> log4j:WARN No appenders could be found for logger (SERVICES).
>
> log4j:WARN Please initialize the log4j system properly.
>
>
>
>
>
>
>
> My Config file
>
>
>
>
>
> # THE ROOT LOGGER
>
> log4j.rootLogger=DEBUG, NULL
>
> #Define own logger
>
> log4j.logger.SERVICES=INHERIRED, A2
>
>
>
> # Define the appender
>
> log4j.appender.A2=org.apache.log4j.RollingFileAppender
>
> log4j.appender.A2.MaxFileSize=10MB
>
> log4j.appender.A2.MaxBackupIndex=1
>
> log4j.appender.A2.layout=org.apache.log4j.TTCCLayout
>
> log4j.appender.A2.layout.ContextPrinting=enabled
>
> log4j.appender.A2.layout.DateFormat=ISO8601
>
>
>
> log4j.additivity.SERVICES=false
>
>
>
>
>
> Can anybody please tell me what is the problem?
>
>
>
> Thanking in advance
>
>
>
> Regards
>
> Rajib
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Again Could not initialize Log4j
Posted by Rajib Das <ra...@anshinsoft.com>.
Hi,
I would like to add ..however the application is getting the logger by
name SERVICES ...see below ..
Regards
Rajib
-----Original Message-----
From: Rajib Das [mailto:rajibd@anshinsoft.com]
Sent: Tuesday, December 10, 2002 10:00 AM
To: log4j-user@jakarta.apache.org
Subject: Urgent : Could not initialize Log4j
Hi,
Im using version 1.2.7. While running the application Im getting this
message ..
log4j:WARN No appenders could be found for logger (SERVICES).
log4j:WARN Please initialize the log4j system properly.
My Config file
# THE ROOT LOGGER
log4j.rootLogger=DEBUG, NULL
#Define own logger
log4j.logger.SERVICES=INHERIRED, A2
# Define the appender
log4j.appender.A2=org.apache.log4j.RollingFileAppender
log4j.appender.A2.MaxFileSize=10MB
log4j.appender.A2.MaxBackupIndex=1
log4j.appender.A2.layout=org.apache.log4j.TTCCLayout
log4j.appender.A2.layout.ContextPrinting=enabled
log4j.appender.A2.layout.DateFormat=ISO8601
log4j.additivity.SERVICES=false
Can anybody please tell me what is the problem?
Thanking in advance
Regards
Rajib
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>