Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (49 sloc) 1.669 kB
<logging>
<filter enabled="true">
<tag>stderr</tag>
<type>console</type>
<granular>
<level>DEBUG</level>
<path>path/to/package</path>
</granular>
<granular>
<level>FINEST</level>
<path>path/to/package.FunctionName</path>
</granular>
<!-- Levels are FINEST|FINE|DEBUG|TRACE|INFO|WARNING|ERROR -->
<level>DEBUG</level>
<!--
Format codes:
%T - Time: 17:24:05.333 HH:MM:SS.ms
%t - Time: 17:24:05 HH:MM:SS
%D - Date: 2011-12-25 yyyy-mm-dd
%d - Date: 2011/12/25
%L - Level (FNST, FINE, DEBG, TRAC, WARN, EROR, CRIT)
%S - Source: full runtime.Caller line
%s - Short Source: just file and line number
%x - Extra Short Source: just file without .go suffix
%M - Message
%% - Percent sign
the string number prefixes are allowed e.g.: %10s will pad the source field to 10 spaces
pattern defaults to %M
both log4go synatax of <property name="format"> and new <format name=type> are supported
the property syntax will only ever support the pattern formatter
-->
<format name="pattern">[%D %T] %L %M</format>
</filter>
<filter enabled="true">
<tag>file</tag>
<type>file</type>
<level>FINEST</level>
<property name="filename">timber_test.log</property>
<property name="format">[%D %T] [%L] %M</property>
</filter>
<filter enabled="true">
<tag>syslog</tag>
<type>socket</type>
<level>FINEST</level>
<property name="protocol">udp</property> <!-- tcp or udp -->
<property name="endpoint">localhost:9500</property> <!-- recommend UDP broadcast -->
<property name="format">%L %M</property>
</filter>
</logging>
Jump to Line
Something went wrong with that request. Please try again.