Ignore:
Timestamp:
2019-10-31T20:03:55+13:00 (4 years ago)
Author:
ak19
Message:
  1. Worked out how to configure log4j to log both to console and logfile, so modified the existing laboured code to use this better way. 2. Added some Mongodb links under MoreReading.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/maori-lang-detection/conf/log4j.properties

    r33400 r33615  
    1212
    1313# Let's log everything from the most basic DEBUG msgs on (so INFO, WARN, ERROR too)
    14 log4j.rootCategory=DEBUG, mldlog
     14# Also want to log to the console, see
     15# https://stackoverflow.com/questions/3382985/how-to-make-log4j-to-write-to-the-console-as-well
    1516
    16 # copied from GS3
    17 log4j.category.web.servlets.DirectInput=INFO, mldlog
    18 # Prevent logging duplicating its messages into rootLogger:
    19 # https://stackoverflow.com/questions/9208710/java-log4j-log-to-both-category-and-root-logger
    20 log4j.additivity.web.servlets.DirectInput=false
     17log4j.rootCategory=DEBUG, console, mldlog
     18
     19# Define Console Appender
     20log4j.appender.console=org.apache.log4j.ConsoleAppender
     21# Define the layout for console appender. If you do not define it, you will get an error
     22log4j.appender.console.layout=org.apache.log4j.PatternLayout
     23log4j.appender.console.Target=System.err
    2124
    2225# We're saying our log "mldlog" is some file that gets appended to,
Note: See TracChangeset for help on using the changeset viewer.