Changeset 4744


Ignore:
Timestamp:
03/18/14 14:20:03 (11 years ago)
Author:
Twan Goosen
Message:

logging settings:

  • properties filtered from pom to differentiate between development (log in console) and production (log to file, default)
  • separate properties for unit tests
Location:
vlo/branches/vlo-3.0/vlo-web-app
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.0/vlo-web-app/pom.xml

    r4731 r4744  
    2222        <spring.version>3.2.5.RELEASE</spring.version>
    2323        <jetty.version>7.6.13.v20130916</jetty.version>
     24        <!-- selects the appender for the log4j root logger -->
     25        <log4j.appender>File</log4j.appender>
     26        <vlo.logging.level>INFO</vlo.logging.level>
    2427    </properties>
    2528    <dependencies>
     
    265268    </build>
    266269   
     270    <profiles>
     271        <profile>
     272            <id>development</id>
     273            <properties>
     274                <!-- selects the appender for the log4j root logger -->
     275                <log4j.appender>Console</log4j.appender>
     276                <vlo.logging.level>DEBUG</vlo.logging.level>
     277            </properties>
     278        </profile>
     279    </profiles>
     280   
    267281    <reporting>
    268282        <plugins>
  • vlo/branches/vlo-3.0/vlo-web-app/src/main/resources/log4j.properties

    r4528 r4744  
    1 log4j.appender.Stdout=org.apache.log4j.ConsoleAppender
    2 log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout
    3 log4j.appender.Stdout.layout.conversionPattern=%-5p - %-26.26c{1} - %m\n
     1log4j.appender.Console=org.apache.log4j.ConsoleAppender
     2log4j.appender.Console.layout=org.apache.log4j.PatternLayout
     3log4j.appender.Console.layout.conversionPattern=%d %p [%c#%M:%L] - %m%n
    44
    5 log4j.rootLogger=INFO,Stdout
     5log4j.appender.File.File=${catalina.base}/logs/vlo.log
     6log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
     7log4j.appender.File.layout=org.apache.log4j.PatternLayout
     8log4j.appender.File.layout.ConversionPattern=%d %p [%c#%M:%L] - %m%n
     9
     10log4j.rootLogger=INFO,${log4j.appender}
    611
    712log4j.logger.org.apache.wicket=INFO
     
    1015log4j.logger.org.apache.wicket.RequestCycle=INFO
    1116
    12 log4j.logger.eu.clarin.cmdi.vlo=DEBUG
    13 
    14 
     17log4j.logger.eu.clarin.cmdi.vlo=${vlo.logging.level}
  • vlo/branches/vlo-3.0/vlo-web-app/src/test/resources/log4j.properties

    r4737 r4744  
    1 log4j.appender.Stdout=org.apache.log4j.ConsoleAppender
    2 log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout
    3 log4j.appender.Stdout.layout.conversionPattern=%-5p - %-26.26c{1} - %m\n
     1log4j.appender.Console=org.apache.log4j.ConsoleAppender
     2log4j.appender.Console.layout=org.apache.log4j.PatternLayout
     3log4j.appender.Console.layout.conversionPattern=%d %p [%c#%M:%L] - %m%n
    44
    5 log4j.rootLogger=INFO,Stdout
    6 
    7 log4j.logger.org.apache.wicket=INFO
    8 log4j.logger.org.apache.wicket.protocol.http.HttpSessionStore=INFO
    9 log4j.logger.org.apache.wicket.version=INFO
    10 log4j.logger.org.apache.wicket.RequestCycle=INFO
     5log4j.rootLogger=WARN,Console
    116
    127log4j.logger.eu.clarin.cmdi.vlo=DEBUG
    13 
    14 
Note: See TracChangeset for help on using the changeset viewer.