Log4j-multiple log files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • crs27
    New Member
    • Jul 2007
    • 40

    Log4j-multiple log files

    Hai All,
    I would like to use multiple appender in my application.i.e , i want to write info messages to one log file ,while i want to write error messages to other file.
    Im using xml file, with dailyfileappend er class.I would also like to know how can i clear the log files after a certain period.

    Thanks in advance.
  • umbr
    New Member
    • Feb 2009
    • 9

    #2
    Hi, crs27.
    With DailyFileAppend er you can clear log files, after a certain period, manually or by scheduler(i.e. cron).

    Comment

    Working...