I am 90% sure the answer it yes but I don't know exactly which methods
you need to call to get the appender.
On 7/21/06, Levy, Jeremy <[EMAIL PROTECTED]> wrote:
I would like to change the subject and the from address of a
smtpappender programmatically that is initially configured via a
propertie
I would like to change the subject and the from address of a
smtpappender programmatically that is initially configured via a
properties file, is this possible?
j
Important Notice to Recipients:
It is important that you do not use e-m
Here's a thought
class ExampleA {
private static final Logger logger_m = Logger.getLogger(ExampleA.class);
void hello() {
getLogger().info("Hello!");
}
public Logger getLogger() {
return logger_m;
}
}
class ExampleB extends ExampleA {
private static final Logger logger_m = L
If you use a lot of inheritance, declaring your loggers in the private
static final way will make calls to logging that are in inherited code
to appear as coming from the superclass.
For example:
class ExampleA {
private static final Logger logger_m = Logger.getLogger(ExampleA.class);
void he
How about this. Then each sub-class has its own logger and it isn't much work.
protected Logger logger_m = Logger.getLogger(getClass());
On 7/21/06, Harp, George <[EMAIL PROTECTED]> wrote:
Hello,
I am used to declaring Loggers in my code the following way
private final static Logger logger
Hello,
I am used to declaring Loggers in my code the following way
private final static Logger logger_m = Logger.getLogger( MyClass.class
);
A co worker wants do declare loggers from a base class so that each sub
class has a seperate logger
public class BaseClass
{
private Logger logge
Hello,
Log4j is a very usefull tool. Here are some features I would find convenient :
1) RollingFileAppender
It's quite convenient to use Log4j for writing 'special' log messages into a
'Excel-like' file with
the .xls extention .
The pattern layout can contain tab "\t" delimited values in order
Hi
,
Can I set the max size of the backup fie when I am using
DailyRollingFileAppender?
Can I get the date as my log file name when using RollingFileAppender?
Thanks in Advance
Sudhakar
--
View this message in context:
http://www.nabble.com/max-size-of-backup-file-in-DailyRollingFileAppender-