Hi,
I have been scratching my head trying to figure out why my application
is logging everything twice.
Below is the log4j.properties file
[code]
log4j.logger.com.mydomain.myapp=TRACE, myconsole
log4j.appender.myconsole=org.apache.log4j.ConsoleAppender
log4j.appender.myconsole.Threshold=TRACE
l
Yes it is a webapp. I have placed in the the runtime classpath. When
compilation completes it is successfully comming to the
/classes/log4j.properties
- i suspect that may i need to configure in web.xml or do i need to write
log4j.xml file?
Jacob Kjome wrote:
>
>
> You are running a webapp, r
You are running a webapp, right? "/src" is not a standard directory that gets put
on the classpath. I'm asking you if it's in the runtime classpath, not in your
compile-time source path.
Jake
msg2ajay wrote:
hi,
I have placed in the /src folder.
[CODE]
log4j.appender.stdout.Targe
hi,
I have placed in the /src folder.
[CODE]
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L -
%m%n
log4j.rootLogger=debug, stdout
[/CODE]
thanQ
Ajay
Matthew
Search the log4j-user list. I recall someone saying there was something
special, beyond Log4j, that controls hibernate logging. This is something
that Hibernate implements. Sorry, I don't remember the details and don't use
Hibernate, so can't be of further assitance.
Jake
On Wed, 14 Nov
While Matt's suggestion might be correct, I think the core issue is that
log4j.properties is not in the classpath of the running application. Since
the user mentioned struts-config.xml and web.xml, the app is clearly a webapp.
As such, log4j.properties (or log4j.xml) should go into WEB-INF/clas
Can you also post your log4j properties file? My guess is that the log
levels are not correct or that appenders are not attached appropriately.
Matt
On Nov 14, 2007 2:22 AM, msg2ajay <[EMAIL PROTECTED]> wrote:
>
> hi friends,
> I am new to log4j . i have written
> [CODE]
>
> - lo
Hi guys,
I am using appfuse 1.9.4 and running in Tomcat 6.0.14. below is the
/WEB-INF/classes/log4j.properties
# This is the configuring for logging displayed in the Application Server
#log4j.rootCategory=INFO, stdout
# Replace the line above if you want to put a log file into the directory
hi friends,
I am new to log4j . i have written
[CODE]
- log4j.properties (file in /src/log4j.properties)
- my .java class is as below
import org.apache.commons.logging.*;
public class RegisterAction extends Action{
private static Log log = LogFactory.getLog("login.action.RegisterA