Changeset 32744 for other-projects

Show
Ignore:
Timestamp:
05.02.2019 18:59:43 (7 months ago)
Author:
ak19
Message:

Western Wilson. Changing over to a DailyRollingFileAppender? since that will be more useful for sending to the DB etc.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/the-macronizer/trunk/web/log4j.properties.in

    r32623 r32744  
    2222# We're saying our log "macronlog" is some file that gets appended to, 
    2323# and it will write it out to "macron.log" located in whatever we defined the "logplace" to be 
    24 log4j.appender.macronlog=org.apache.log4j.RollingFileAppender 
     24 
     25# Old way of logging: 
     26#log4j.appender.macronlog=org.apache.log4j.RollingFileAppender 
     27#log4j.appender.macronlog.File=${macronizer.logplace}/macron.log 
     28## https://howtodoinjava.com/log4j/log4j-rolling-file-appender/ 
     29##log4j.appender.macronlog.MaxBackupIndex=10 
     30 
     31# We want a DailyRollingFileAppender. 
     32# Its behaviour is explained at 
     33# https://examples.javacodegeeks.com/enterprise-java/log4j/log4j-rolling-daily-file-example/ 
     34log4j.appender.macronlog=org.apache.log4j.DailyRollingFileAppender 
    2535log4j.appender.macronlog.File=${macronizer.logplace}/macron.log 
     36log4j.appender.macronlog.DatePattern='.'yyyy-MM-dd 
     37    # set to roll over every day, can change this to weekly/every min etc, see https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/DailyRollingFileAppender.html 
    2638 
    2739# if you have more logs, define category, additivity, appender and appender.File for it as above