Hello,
excuse, maybe it is not posible to declare/instantiate automatically the
ResourceBundle for my Messages, which i want get by key ?
I am Looking for something like this :
log4j.appender.W.layout=com.letaba.bpi.util.BPIWebLayout
log4j.appender.XML=org.apache.log4j.RollingFileAppender
hi,
i need to write an owen logger class extending log4js logger and
overwriting the debug, info, warn, error and fatal methods!
o.k. - i've done it like that:
public void debug(Object msg){
...
my operations
...
logger.debug(msg); //logger is an object of log4js Logger
}
first, extending Logger class is discouraged. You should wrap the logger class
if you want to do generic work on each logger call. Best practice would be, to
pass the correct logger in each call to debug() etc. So you can benefit of
finetuning the logger output by classes and packages.
second:
thanx for the fast help!
yes it works!!!
thanx,
christoph
-Ursprüngliche Nachricht-
Von: Bender Heri [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 13. Juli 2006 16:19
An: Log4J Users List
Betreff: RE: my owen loggerclass
first, extending Logger class is discouraged. You should wrap
I don't know about that. I do know that the XML format supports more
things so you may want to look into that.
On 7/13/06, Braumüller, Hans [EMAIL PROTECTED] wrote:
Hello,
excuse, maybe it is not posible to declare/instantiate automatically the
ResourceBundle for my Messages, which i want
How can I setup logging for the following?
com.package.class1 debug to PackageAppender
com.package.class2 info to PackageAppender
root debug to DebugAppender (including all messages from com.package)
Because PackageAppender needs to get debug messsages I can't set the
threshold. Therefore I
Hi,
Iam using log4j in my applicaiton. I am using rollingFileAppender class for
creating backup files. My backup log files will be logfile.1,logile.2 like
that. I wany my backup log file names shoule be time stamped like this
logfiel.14-07-06:12:00:00 . Can any body guide me how to achive it.
Try this out:
appender name=MY_LOG class=org.apache.log4j.DailyRollingFileAppender
param name=File value=D:/mylog.log/
param name=Append value=false/
!-- Rollover at midnight each day --
param name=DatePattern value=apos;.apos;-MM-dd/
layout