Overview
Features
Download
Documentation
Community
Add-Ons & Services

Logger - write to console and in file in same time

Please post support and help requests here.

Logger - write to console and in file in same time

Postby crashtua » 16 Aug 2012, 14:28

Is it possible to set multiply channels to logger, to write simultaneously to console and to file?
Sorry for such stupid questions, i am newbie to POCO.
crashtua
 
Posts: 8
Joined: 16 Aug 2012, 14:24

Re: Logger - write to console and in file in same time

Postby guenter » 16 Aug 2012, 19:51

Yes, you'll need to set up a Poco::SplitterChannel and connect the ConsoleChannel and FileChannel to it.
guenter
 
Posts: 1107
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Logger - write to console and in file in same time

Postby crashtua » 16 Aug 2012, 21:32

Thanks a lot. Just what i want.
crashtua
 
Posts: 8
Joined: 16 Aug 2012, 14:24


Return to Support

Who is online

Users browsing this forum: No registered users and 5 guests