Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" ?>
- <Application>
- <logging>
- <channels>
- <c1>
- <class>ColorConsoleChannel</class>
- <formatter>
- <class>PatternFormatter</class>
- <pattern>%Y-%m-%d %H:%M:%S : %s : [%p] : %t</pattern>
- </formatter>
- <traceColor>lightBlue</traceColor>
- <debugColor>blue</debugColor>
- <informationColor>green</informationColor>
- <noticeColor>green</noticeColor>
- <warningColor>yellow</warningColor>
- <errorColor>red</errorColor>
- <criticalColor>lightMagenta</criticalColor>
- <fatalColor>lightMagenta</fatalColor>
- </c1>
- <c2>
- <class>FileChannel</class>
- <path>logs/traceApplication.log</path>
- <rotation>1 M</rotation>
- <archive>number</archive>
- <purgeCount>5</purgeCount>
- <formatter>
- <class>PatternFormatter</class>
- <pattern>%Y-%m-%d %H:%M:%S : %T : [%p] : %t</pattern>
- </formatter>
- </c2>
- </channels>
- <loggers>
- <consoleLogger>
- <channel>c1</channel>
- <level>information</level>
- </consoleLogger>
- <traceFileLogger>
- <channel>c2</channel>
- <level>trace</level>
- </traceFileLogger>
- </loggers>
- <channels>
- <cSplitter>
- <class>SplitterChannel</class>
- <channels>consoleLogger,traceFileLogger,mainFileLogger</channels>
- </cSplitter>
- </channels>
- <loggers>
- <root>
- <channel>cSplitter</channel>
- <level>trace</level>
- </root>
- </loggers>
- </logging>
- </Application>
- void CBS2AudioVideo::initialize(Poco::Util::Application& self)
- {
- loadConfiguration("config.xml");
- Poco::Util::ServerApplication::initialize(self);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement