|
What this is
Other links
The source code<?xml version="1.0" ?> <log-configuration> <!-- ================================================== --> <!-- Definitions of all loggers --> <!-- ================================================== --> <!-- define the loggers starting with the name "com.mvnforum" --> <logger name="com.mvnforum"> <level>ALL <generator>LogFile <generator>LogConsole </logger> <!-- define the loggers starting with the name "net.myvietnam" --> <logger name="net.myvietnam"> <level>ALL <generator>LogFile <generator>LogConsole <filter>ExceptionFilter </logger> <!-- For Tomcat5.5 Because there are a lot of DEBUG message in Tomcat5.5 taglib, I used a generator at level ERROR to remove(filter) them from the file as well as the console (I think it is a problem before) --> <logger name="org.apache"> <level>ERROR <generator>LogFile <generator>LogConsole <filter>ExceptionFilter </logger> <!-- ================================================== --> <!-- Definitions of all channels --> <!-- ================================================== --> <channel name="DEBUG"> <mode>on <generator>TestGenerator </channel> <!-- ================================================== --> <!-- Definitions of all filters --> <!-- ================================================== --> <filter name="ExceptionFilter"> <class>TextFilter <parameter name="expression" value="Exception"/> <parameter name="case_sensitiv" value="false"/> </filter> <!-- ================================================== --> <!-- Definitions of all generators --> <!-- ================================================== --> <generator name="LogFile"> <formatter>DefaultFormatter <handler>FileHandler <parameter name="file" value="C:/Software/tomcat/webapps/mvnforum/WEB-INF/mvnForumHome/log/mvnforum.log"/> </generator> <generator name="LogConsole"> <formatter>DefaultFormatter <handler>ConsoleHandler </generator> </log-configuration> |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.