Changeset 13559


Ignore:
Timestamp:
2007-01-11T12:15:00+13:00 (15 years ago)
Author:
shaoqun
Message:

added the server logger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/resources/java/log4j.properties.in

    r13121 r13559  
    1111log4j.disable=DEBUG
    1212
    13 ##configure the loggers                                                   
     13#####configure the loggers####
     14##general logger                                                   
    1415log4j.rootCategory=INFO, infolog
     16
     17##usage logger
    1518log4j.category.org.greenstone.gsdl3.LibraryServlet=INFO, usagelog
    1619log4j.additivity.org.greenstone.gsdl3.LibraryServlet=false
    1720
    18 ##configure appenders and their oprions                                 
     21##server logger
     22log4j.category.org.greenstone.server=INFO, serverlog
     23log4j.additivity.org.greenstone.server=false
     24
     25#####configure appenders and their oprions####                                 
     26##general logger
    1927log4j.appender.infolog=org.apache.log4j.RollingFileAppender
    2028log4j.appender.infolog.File=${gsdl3.home}/logs/greenstone.log
    21 ##Control the maximum log file size
     29#Control the maximum log file size
    2230log4j.appender.infolog.MaxFileSize=100KB
    23 ##Keep backup file(s) (backups will be in filename.1, .2, .3 etc.)
     31#Keep backup file(s) (backups will be in filename.1, .2, .3 etc.)
    2432log4j.appender.infolog.MaxBackupIndex=3
    2533
     34##usage logger
    2635log4j.appender.usagelog=org.apache.log4j.RollingFileAppender
    2736log4j.appender.usagelog.File=${gsdl3.home}/logs/usage.log
    28 ##Control the maximum log file size
     37#Control the maximum log file size
    2938log4j.appender.usagelog.MaxFileSize=1000KB
    3039
    31 ##Configure appender layouts and their options
     40##Server's logger
     41log4j.appender.serverlog=org.apache.log4j.RollingFileAppender
     42log4j.appender.serverlog.File=${gsdl3.home}/logs/server.log
     43
     44
     45#####Configure appender layouts and their options####
     46## general logger layout
    3247log4j.appender.infolog.layout=org.apache.log4j.PatternLayout
    3348log4j.appender.infolog.layout.ConversionPattern=%-5p: [%d{yyyy-mm-dd hh:mm}] %C{1}.%M()%n %m%n
    3449
    35 ## Usage log contains:                                                       
    36 ##       loggingTime + servletName + args (in URL plus saved in a session) + 
    37 ##       remoteAddress + sessionID + browerInfo                               
     50##usage logger layout
     51# Usage log contains:                                                       
     52#      loggingTime + servletName + args (in URL plus saved in a session) + 
     53#      remoteAddress + sessionID + browerInfo                               
    3854log4j.appender.usagelog.layout=org.apache.log4j.PatternLayout
    3955log4j.appender.usagelog.layout.ConversionPattern=[%d{yyyy-mm-dd hh:mm}] %m%n
    4056
     57##server logger layout
     58log4j.appender.serverlog.layout=org.apache.log4j.PatternLayout
     59log4j.appender.serverlog.layout.ConversionPattern=%-5p: [%d{yyyy-mm-dd hh:mm}] %C{1}.%M()%n %m%n
     60
Note: See TracChangeset for help on using the changeset viewer.