| 1 | # For the general syntax of property based configuration files see the |
|---|
| 2 | # documenation of org.apache.log4j.PropertyConfigurator. |
|---|
| 3 | |
|---|
| 4 | # The root category uses the appender called A1. Since no priority is |
|---|
| 5 | # specified, the root category assumes the default priority for root |
|---|
| 6 | # which is DEBUG in log4j. The root category is the only category that |
|---|
| 7 | # has a default priority. All other categories need not be assigned a |
|---|
| 8 | # priority in which case they inherit their priority from the |
|---|
| 9 | # hierarchy. |
|---|
| 10 | |
|---|
| 11 | log4j.rootCategory = WARNING, A1 |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | # A1 is set to be a PluginFileAppender |
|---|
| 15 | |
|---|
| 16 | log4j.appender.A1 = com.tools.logging.PluginFileAppender |
|---|
| 17 | log4j.appender.A1.File = plugin.log |
|---|
| 18 | log4j.appender.A1.layout = org.apache.log4j.PatternLayout |
|---|
| 19 | log4j.appender.A1.layout.ConversionPattern = %p %t %c - %m%n |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | # A2 is set to be a PluginLogAppender |
|---|
| 23 | |
|---|
| 24 | log4j.appender.A2 = com.tools.logging.PluginLogAppender |
|---|
| 25 | log4j.appender.A2.layout = org.apache.log4j.PatternLayout |
|---|
| 26 | log4j.appender.A2.layout.ConversionPattern = %p %t %c - %m%n |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | # Ganymede is a SocketAppender for use with the Ganymede log viewer. |
|---|
| 30 | # See http://sourceforge.net/projects/ganymede/ |
|---|
| 31 | |
|---|
| 32 | #log4j.appender.Ganymede=org.apache.log4j.net.SocketAppender |
|---|
| 33 | #log4j.appender.Ganymede.remoteHost=localhost |
|---|
| 34 | #log4j.appender.Ganymede.port=4445 |
|---|
| 35 | #log4j.appender.Ganymede.locationInfo=true |
|---|
| 36 | |
|---|
| 37 | # add appender A2 to plugin level only |
|---|
| 38 | |
|---|
| 39 | log4j.logger.edu.vt.ossie = , A2 |
|---|