- Code: Select all
<application>
<logging>
<formatters>
<f1>
<class>PatternFormatter</class>
<!-- <pattern>%m/%d/%Y %H:%M:%S.%i %s.%p %t</pattern> -->
<pattern>%s.%p %t</pattern>
<times>UTC</times>
</f1>
<f2>
<class>PatternFormatter</class>
<pattern>##[%s, %p]## %t</pattern>
<times>UTC</times>
</f2>
</formatters>
<channels>
<c1>
<class>ConsoleChannel</class>
<formatter>f2</formatter>
</c1>
<c2>
<class>FileChannel</class>
<path>debug.log</path>
<formatter>f1</formatter>
</c2>
<c3>
<class>SyslogChannel</class>
<name>m9kservd</name>
<facility>SYSLOG_USER</facility>
</c3>
<c4>
<class>SplitterChannel</class>
<channel>c1,c2,c3</channel>
</c4>
</channels>
<loggers>
<Application>
<name>Application</name>
<channel>c4</channel>
</Application>
</loggers>
</logging>
</application>
I can do it programatically with Application::instance().logger().setLevel("trace"); but it usually makes more sense to set the priority at run-time.
Thanks





