diff options
author | =Corey Hulen <corey@hulen.com> | 2016-01-14 09:08:13 -0600 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-01-14 09:08:13 -0600 |
commit | 6d6cada0970a2b341f36dac9b0fed8262ada1865 (patch) | |
tree | fc3728f15deaebd0c870838a63735659a33456e7 /Godeps/_workspace/src/github.com/alecthomas/log4go/examples/example.xml | |
parent | 0b986ed3147c885af6b2f33e1ff3eb6754e8f274 (diff) | |
parent | a341dbad2b8a4564b6f270c79f2f9932e499ac80 (diff) | |
download | chat-6d6cada0970a2b341f36dac9b0fed8262ada1865.tar.gz chat-6d6cada0970a2b341f36dac9b0fed8262ada1865.tar.bz2 chat-6d6cada0970a2b341f36dac9b0fed8262ada1865.zip |
Merge branch 'master' into PLT-1429
Diffstat (limited to 'Godeps/_workspace/src/github.com/alecthomas/log4go/examples/example.xml')
-rw-r--r-- | Godeps/_workspace/src/github.com/alecthomas/log4go/examples/example.xml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Godeps/_workspace/src/github.com/alecthomas/log4go/examples/example.xml b/Godeps/_workspace/src/github.com/alecthomas/log4go/examples/example.xml new file mode 100644 index 000000000..e791278ce --- /dev/null +++ b/Godeps/_workspace/src/github.com/alecthomas/log4go/examples/example.xml @@ -0,0 +1,47 @@ +<logging> + <filter enabled="true"> + <tag>stdout</tag> + <type>console</type> + <!-- level is (:?FINEST|FINE|DEBUG|TRACE|INFO|WARNING|ERROR) --> + <level>DEBUG</level> + </filter> + <filter enabled="true"> + <tag>file</tag> + <type>file</type> + <level>FINEST</level> + <property name="filename">test.log</property> + <!-- + %T - Time (15:04:05 MST) + %t - Time (15:04) + %D - Date (2006/01/02) + %d - Date (01/02/06) + %L - Level (FNST, FINE, DEBG, TRAC, WARN, EROR, CRIT) + %S - Source + %M - Message + It ignores unknown format strings (and removes them) + Recommended: "[%D %T] [%L] (%S) %M" + --> + <property name="format">[%D %T] [%L] (%S) %M</property> + <property name="rotate">false</property> <!-- true enables log rotation, otherwise append --> + <property name="maxsize">0M</property> <!-- \d+[KMG]? Suffixes are in terms of 2**10 --> + <property name="maxlines">0K</property> <!-- \d+[KMG]? Suffixes are in terms of thousands --> + <property name="daily">true</property> <!-- Automatically rotates when a log message is written after midnight --> + </filter> + <filter enabled="true"> + <tag>xmllog</tag> + <type>xml</type> + <level>TRACE</level> + <property name="filename">trace.xml</property> + <property name="rotate">true</property> <!-- true enables log rotation, otherwise append --> + <property name="maxsize">100M</property> <!-- \d+[KMG]? Suffixes are in terms of 2**10 --> + <property name="maxrecords">6K</property> <!-- \d+[KMG]? Suffixes are in terms of thousands --> + <property name="daily">false</property> <!-- Automatically rotates when a log message is written after midnight --> + </filter> + <filter enabled="false"><!-- enabled=false means this logger won't actually be created --> + <tag>donotopen</tag> + <type>socket</type> + <level>FINEST</level> + <property name="endpoint">192.168.1.255:12124</property> <!-- recommend UDP broadcast --> + <property name="protocol">udp</property> <!-- tcp or udp --> + </filter> +</logging> |