...I think addAppender method is accumulative... Thomas Tuft Muller wrote:
> Instead of changing the log file of a specified appender, you can > just (programmatically) add a new appender with the new file, and > possibly remove the old one. > > ... > Logger logger = Logger.getLogger( "foo.bar" ); > Appender appender = new FileAppender( new PatternLayout( ... ), > "foo-bar.log", false ); > logger.addAppender( appender ); > ... > > Hope this helps. > > -- > > Thomas > > | -----Original Message----- > | From: Castaway Gladiator [mailto:[EMAIL PROTECTED]] > | Sent: 19 April 2002 21:48 > | To: [EMAIL PROTECTED] > | Subject: how to dynamically change the logfile at run time > | > | > | How to dynamically change the logfile at run time for a given Appender > | I want to create a log file with name based on th einput > | parameter passed > | at runtime > | Thanks > | Balaji Venkatesan > | > | _________________________________________________________________ > | Get your FREE download of MSN Explorer at > | http://explorer.msn.com/intl.asp. > | > | > | -- > | To unsubscribe, e-mail: > | <mailto:[EMAIL PROTECTED]> > | For additional commands, e-mail: > | <mailto:[EMAIL PROTECTED]> > | > | > > ************************************************************************* > Copyright ERA Technology Ltd. 2002. (www.era.co.uk). All rights reserved. > The information supplied in this email should be treated in confidence. > No liability whatsoever is accepted for any loss or damage > suffered as a result of accessing this message or any attachments. > > ________________________________________________________________________ > This email has been scanned for all viruses by the MessageLabs SkyScan > service. For more information on a proactive anti-virus service working > around the clock, around the globe, visit http://www.messagelabs.com > ________________________________________________________________________ > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>