1 ###############################################################################
2 # Copyright (c) 2007, 2010 Association for Decentralized Information Management
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Eclipse Public License v1.0
6 # which accompanies this distribution, and is available at
7 # http://www.eclipse.org/legal/epl-v10.html
10 # VTT Technical Research Centre of Finland - initial API and implementation
11 ###############################################################################
12 # For the general syntax of property based configuration files see the
13 # documentation of org.apache.log4j.PropertyConfigurator.
15 # The root category uses the appender called rolling. If no priority is
16 # specified, the root category assumes the default priority for root
17 # which is DEBUG in log4j. The root category is the only category that
18 # has a default priority. All other categories need not be assigned a
19 # priority in which case they inherit their priority from the
22 # This will provide console output on log4j configuration loading
25 log4j.rootCategory=warn, stdout
26 #log4j.rootCategory=warn
28 # BEGIN APPENDER: CONSOLE APPENDER (stdout)
29 # first: type of appender (fully qualified class name)
30 log4j.appender.stdout=org.apache.log4j.ConsoleAppender
32 # second: Any configuration information needed for that appender.
33 # Many appenders require a layout.
34 log4j.appender.stdout.layout=org.apache.log4j.TTCCLayout
35 # log4j.appender.stdout.layout=org.apache.log4j.SimpleLayout
37 # Possible information overload?
38 # log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
39 # additionally, some layouts can take additional information --
40 # like the ConversionPattern for the PatternLayout.
41 # log4j.appender.stdout.layout.ConversionPattern=%d %-5p %-17c{2} (%30F:%L) %3x - %m%n
42 # END APPENDER: CONSOLE APPENDER (stdout)
44 # BEGIN APPENDER: ROLLING FILE APPENDER (rolling)
45 #log4j.appender.rolling=com.tools.logging.PluginFileAppender
46 #log4j.appender.rolling=org.apache.log4j.FileAppender
47 log4j.appender.rolling=org.apache.log4j.RollingFileAppender
48 log4j.appender.rolling.File=procore.log
49 log4j.appender.rolling.append=true
50 log4j.appender.rolling.MaxFileSize=8192KB
51 # Keep one backup file
52 log4j.appender.rolling.MaxBackupIndex=1
53 log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
54 #log4j.appender.rolling.layout.ConversionPattern=%p %t %c - %m%n
55 log4j.appender.rolling.layout.ConversionPattern=%-6r [%15.15t] %-5p %30.30c - %m%n
56 # END APPENDER: ROLLING FILE APPENDER (rolling)
58 # BEGIN APPENDER: PLUG-IN LOG APPENDER (plugin)
59 log4j.appender.plugin=com.tools.logging.PluginLogAppender
60 log4j.appender.plugin.layout=org.apache.log4j.PatternLayout
61 #log4j.appender.plugin.layout.ConversionPattern=%p %t %c - %m%n
62 log4j.appender.plugin.layout.ConversionPattern=%-6r [%15.15t] %-5p %30.30c - %m%n
63 # END APPENDER: PLUG-IN LOG APPENDER (plugin)