Hi everybody... I know that one of the ways to use log4j with struts is
to load a log4j.properties file at servlet container startup...
But what if I have a business layer that has no direct connection to a
servlet container or I want to run some stand-alone tests and
logging... Do I have to
PROTECTED]
Sent: Friday, November 21, 2003 3:29 PM
To: Struts Users Mailing List
Subject: STRUTS LOG4J
Hi everybody... I know that one of the ways to use log4j with struts is
to load a log4j.properties file at servlet container startup...
But what if I have a business layer that has no direct
Am Freitag, 21. November 2003 15:34 schrieb
[EMAIL PROTECTED]:
easy pizzy...We are already having the same scenario.
Don't use the default log4j initialization(which means just putting
the log4j.properties file in the class path and forget about it.)This
way you have no control over the
Hi. I have problem in using the common-logging with struts and
Log4j. I am basically lost. I have short questions, I appreciate if
anyone can help me little bit. these are the questions with examples:
The file outputfile.log that I specify in
log4j.appender.LOGFILE.File=outputfile.log where
);
System.out.println(System.out.println - Log4j URL: + log4jProps);
// configure log4j
PropertyConfigurator.configure(log4jProps);
Mike
-Original Message-
From: rablists [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 7:51 AM
To: [EMAIL PROTECTED]
Subject: common-logging, Struts, Log4j
Hi. I
PROTECTED]
Sent: Thursday, June 26, 2003 8:51 AM
To: [EMAIL PROTECTED]
Subject: common-logging, Struts, Log4j
Hi. I have problem in using the common-logging with struts and
Log4j. I am basically lost. I have short questions, I appreciate if
anyone can help me little bit
By default the property-files
commons-logging.properties
log4j.properties
are located in the directory WEB-INF/classes
Usually you put them in your workbench in the root of the Java Source
directory. If you build with ant you simply copy them there from your
chosen source directory
Markus
Rabih,
You place the properties files at the wrong place. Move them to
WEB-INF/classes
-D
- Original Message -
From: rablists [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 5:50 AM
Subject: common-logging, Struts, Log4j
Hi. I have problem in using the common
if there is anything
written before
you check
rolling file permissions etc.
Hope this helps.
Reddy
Original Message-
From: rablists [SMTP:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 8:51 AM
To: [EMAIL PROTECTED]
Subject:common-logging, Struts, Log4j
Hi. I
Hi! All,
i'm trying to use log4j in struta application.. but when i create a log4j
instance inside(
private final static Logger log = Logger.getLogger(PAF3Entity.class)
) strut action class..the action path is not forwarded..instead it throws the
following at the console.
2003-02-13
Hi,
I am not sure did you tried to create the logger without final? I use it only as
statis.
Juraj
-Ursprüngliche Nachricht-
Von: Dinesh Sampangi [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 13. Februar 2003 09:05
An: Struts Users Mailing List
Betreff: struts log4j
Hi! All
: Thursday, February 13, 2003 9:05 AM
Subject: struts log4j
Hi! All,
i'm trying to use log4j in struta application.. but when i create
a log4j instance inside(
private final static Logger log = Logger.getLogger(PAF3Entity.class)
) strut action class..the action path is not forwarded..instead
Betreff: struts log4j
Hi! All,
i'm trying to use log4j in struta application.. but when i create a log4j
instance inside(
private final static Logger log = Logger.getLogger(PAF3Entity.class)
) strut action class..the action path is not forwarded..instead it throws the
following
hi!
it doesn't to have any effect.. still the same..
rgds,
dinesh
- Original Message -
From: Simon Kelly [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 2:14 PM
Subject: Re: struts log4j
should be written as
private transient
To: Struts Users Mailing List
Subject: Re: struts log4j
should be written as
private transient static final Log log =
LogFactory.getLog(xxx.yyy.zzz.class);
Where xxx.yyy.zzz is the full class path with in the package.
Simon
- Original Message -
From: Dinesh Sampangi [EMAIL PROTECTED
=ERROR
-- Please note that every classes must begin with log4j.logger
[snip]
- Original Message -
From: Dinesh Sampangi [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 10:44 AM
Subject: Re: struts log4j
hi!
it doesn't to have any
Sampangi [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 9:05 AM
Subject: struts log4j
Hi! All,
i'm trying to use log4j in struta application.. but when i
create
a log4j instance inside(
private final static Logger log
welcome..
anyway thanks for the code ...simon
rgds,
dinesh
- Original Message -
From: Simon Kelly [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 3:47 PM
Subject: Re: struts log4j
Here is a copy of the mail that was sent to me
(
Action.class.getName() );
Isn't it actually this simple ? Others seem to be complex.
Mohan
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 3:58 PM
To: Struts Users Mailing List
Subject: Re: struts log4j
What developpement tool
Hi! mohan,
ok!.. with this configuration can i get user specific log messages??
rgds,
dinesh
- Original Message -
From: Mohan Radhakrishnan [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 4:03 PM
Subject: RE: struts log4j
Hi
Hi,
I was trying to setup log4j with struts application, and found that struts
commons were already using it. Basically, the logging works, but I don't
want my application specific logs mingled with struts and some of the other
utilities I'm using. My log4j init file initializes rootLogger and
21 matches
Mail list logo