Re: Programmatically change properties of an appender

2006-07-21 Thread James Stauffer
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

Programmatically change properties of an appender

2006-07-21 Thread Levy, Jeremy
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

Re: Declaration of loggers

2006-07-21 Thread Michael . Colemen
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

Re: Declaration of loggers

2006-07-21 Thread Javier Gonzalez
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

Re: Declaration of loggers

2006-07-21 Thread James Stauffer
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

Declaration of loggers

2006-07-21 Thread Harp, George
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

Some questions regarding version 1.3 alpha8

2006-07-21 Thread Patrick Vedrines
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

max size of backup file in DailyRollingFileAppender

2006-07-21 Thread sudhakardvvn
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-