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 Joseph Sartre <jo...@msn.com> on 2005/06/22 10:27:51 UTC

Creating custom levels [Edit]

And I forgot to add:
How do we use it with the xml configuration file.

Than ks

JOseph

-----------
Alternative email: js397@st-andrews.ac.uk
Personal Website: http://www.yussef.no-ip.com
Mobile UK: +447704456081
Mobile FR: +33665668941



>From: Antony <ap...@hotmail.com>
>Reply-To: "Log4J Users List" <lo...@logging.apache.org>
>To: log4j-user@logging.apache.org
>Subject: Re: Log4 and EJB's in BEA WEblogic 6.1
>Date: Tue, 21 Jun 2005 21:08:02 +0000 (UTC)
>
>Hi everyone,
>
>     Iam trying to get this log4J to work with WebLogic Server 8.1 SP3.  I 
>just
>want to log certain information to an HTML format file.  I don't know why 
>but
>its just won't write to that file and gives me no errors.  But this
>application when deployed to WebLogic Server 8.1 SP2 it works fine by 
>created
>the HTML file and logging the information.  Can anyone help me with this
>problem, I need it to get to work for WebLogic Server 8.1 SP3.  Here is my
>log4j.properties file which is place in WEB-INF/classes.
>
># This file contains key/value pairs required to setup Log4J.
>log4j.threshold=DEBUG
>log4j.rootLogger=all, stdout, R
>
># For console appender
>log4j.appender.stdout=org.apache.log4j.ConsoleAppender
>log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
>log4j.appender.stdout.layout.ConversionPattern=[%d{dd-MMM-yyyy HH:mm:ss z}]
>[MAWEB] %-5p %c{1} - %m%n
>
>#For XTam
>log4j.logger.log.XtamAppMsgLogger=DEBUG,stdout
>log4j.appender.R=org.apache.log4j.RollingFileAppender
>log4j.appender.R.layout=org.apache.log4j.HTMLLayout
>log4j.appender.R.layout.Time='.'HH:mm:ss z'.html'
>log4j.appender.R.layout.ConversionPattern=[%d{dd-MMM-yyyy HH:mm:ss z}] 
>[MAWEB]
>%-5p %c{1} - %m%n
>log4j.appender.R.File=C:/bea813/user_projects/domains/testProject1.html
>log4j.appender.R.MaxFileSize=100KB
>
># Keep one backup file
>log4j.appender.R.MaxBackupIndex=1
>
>
>Thanks,
>Antony
>(Software Engineer)
>New Jersey
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org
>



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


Re: Creating custom levels [Edit]

Posted by James Stauffer <st...@gmail.com>.
Adding -Dlog4j.debug might tell you what is going wrong.

On 6/22/05, Joseph Sartre <jo...@msn.com> wrote:
>     Iam trying to get this log4J to work with WebLogic Server 8.1 SP3.  I just
>want to log certain information to an HTML format file.  I don't know why but
>its just won't write to that file and gives me no errors.  But this
>application when deployed to WebLogic Server 8.1 SP2 it works fine by created
>the HTML file and logging the information.  Can anyone help me with this
>problem, I need it to get to work for WebLogic Server 8.1 SP3.  Here is my
>log4j.properties file which is place in WEB-INF/classes.


-- 
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

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