Poco logger convenience macros

A general discussion forum.
Posts: 1
Joined: 23 Jan 2014, 13:53

Poco logger convenience macros

Postby asafk » 23 Jan 2014, 14:07

I started using the Poco foundation library for my project, i have question about the trace and debug macros of the logger at "Poco/Logger.h".
Why there is different between the Debug build to Release build ? i mean, in release the "poco_debug..." and "poco_trace..." are empty.


Posts: 1190
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Poco logger convenience macros

Postby guenter » 23 Jan 2014, 18:36

The idea was to speed up the release build by not including code for debug logging output. These days I'm not sure whether that was a good idea.

Posts: 2
Joined: 28 Apr 2014, 16:31

Re: Poco logger convenience macros

Postby pascal » 28 Apr 2014, 16:37

There is a compile (POCO_LOG_DEBUG) flag in the develop version of Poco that allows to use these macros even in a Release build.
See: https://github.com/pocoproject/poco/pull/421 for more details.

Return to “General Discussion”

Who is online

Users browsing this forum: Google [Bot] and 1 guest