Overview
Features
Download
Documentation
Community
Add-Ons & Services

Poco logger convenience macros

A general discussion forum.

Poco logger convenience macros

Postby asafk » 23 Jan 2014, 14:07

Hello,
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.

Thanks,
Asaf
asafk
 
Posts: 1
Joined: 23 Jan 2014, 13:53

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.
guenter
 
Posts: 1135
Joined: 11 Jul 2006, 16:27
Location: Austria

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.
pascal
 
Posts: 2
Joined: 28 Apr 2014, 16:31


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron