Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Daily log appender query

 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all

I was under the impression that the Daily log appender is used only to back up the specified file...But i am getting a problem wherein every debug statement is coming in the form of the daily log appender layout. Pls have a look at the log4j.properties below

Logger.debug("test") -- this is coming in the format specified for daily log appender

 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Nischal Tanna:
Hi all

I was under the impression that the Daily log appender is used only to back up the specified file...But i am getting a problem wherein every debug statement is coming in the form of the daily log appender layout. Pls have a look at the log4j.properties below



No, it appends log events to a file and rolls over that file at the user chosen frequency.

From the javadoc:

DailyRollingFileAppender extends FileAppender so that the underlying file is rolled over at a user chosen frequency.

FileAppender appends log events to a file.


[ January 31, 2007: Message edited by: Carol Enderlin ]
 
And tomorrow is the circus! We can go to the circus! I love the circus! We can take this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic