Can RollingFileAppender generate error/notification when its overwriting an existing file?

2002-09-18 Thread N. D.

Hi

I am using RollingFileAppender to create audit logs for my application. I would
like to know in my application everytime when it is overwriting an exisiting
log file. Does RollingFileAppender generate error, so that I can write my own
error handler? Is there any way to add a callback?

TIA
n.d.

__
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Customized APpenders

2002-08-09 Thread N. D.

Is it possible to customize the appenders? I would like to pass my own type of
object to the logger. And have the custom appender take care of the log object.
Can just implementing the Appender interface work?

Thanks -- ND

__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 





Re: logger factory question

2002-07-31 Thread N. D.

Hi

Does anybody have any documentation pointers to the alternative to using
LoggerFactory? Will buying the complete log4J manual help? Can I find some
explanation as to why the use of LoggerFactory discouraged?

The mail archives seem to suggest use of LoggerRepository, but there wasn't any
explanation as to how it should be used.

I am evaluating Log4J as a logging tool for our project and facing roadblocks
right at the beginning. I would really appreciate any help about this.

Thanks -- ND

--- "N. D." <[EMAIL PROTECTED]> wrote:
> Hi
> 
> I need some help regarding the configuration of logger factories.
> I would like to define my own logger class for eg MyLogger, derived from
> Logger, so that I can define additional interfaces and the users of my API
> can
> still create the instances of MyLogger by making a call to
> MyLogger.getLogger(). MyLogger.getLogger will internally create a logger
> using
> an instance of MyLoggerFactory.
> 
> This works great except when I am using a PropertyConfigurator. If I define
> multiple loggers in the configuration file and used PropertyConfigurator to
> read and configure them, then all the instances created are Logger instances
> as
> opposed to MyLogger. But in fact I would like them to be instances of
> MyLogger.
> I couldn't get any documentation about how to configure this scenario and it
> seems that the LoggerFactory configuration is no longer supported.
> 
> Is there any information available on either 1) how to configure the logger
> factories to get correct logger instances or 2) alternate ways to extend the
> logger functionality tailored to the application?
> 
> Thanks in Advance
> --ND
> 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




logger factory question

2002-07-30 Thread N. D.

Hi

I need some help regarding the configuration of logger factories.
I would like to define my own logger class for eg MyLogger, derived from
Logger, so that I can define additional interfaces and the users of my API can
still create the instances of MyLogger by making a call to
MyLogger.getLogger(). MyLogger.getLogger will internally create a logger using
an instance of MyLoggerFactory.

This works great except when I am using a PropertyConfigurator. If I define
multiple loggers in the configuration file and used PropertyConfigurator to
read and configure them, then all the instances created are Logger instances as
opposed to MyLogger. But in fact I would like them to be instances of MyLogger.
I couldn't get any documentation about how to configure this scenario and it
seems that the LoggerFactory configuration is no longer supported.

Is there any information available on either 1) how to configure the logger
factories to get correct logger instances or 2) alternate ways to extend the
logger functionality tailored to the application?

Thanks in Advance
--ND



__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: