mirror of
https://github.com/pocoproject/poco.git
synced 2025-06-02 21:18:15 +02:00
fixed SF# 2782709
This commit is contained in:
parent
37713c2ddc
commit
23ea66bb12
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// Logger.h
|
// Logger.h
|
||||||
//
|
//
|
||||||
// $Id: //poco/svn/Foundation/include/Poco/Logger.h#2 $
|
// $Id: //poco/Main/Foundation/include/Poco/Logger.h#7 $
|
||||||
//
|
//
|
||||||
// Library: Foundation
|
// Library: Foundation
|
||||||
// Package: Logging
|
// Package: Logging
|
||||||
@ -323,29 +323,29 @@ private:
|
|||||||
// convenience macros
|
// convenience macros
|
||||||
//
|
//
|
||||||
#define poco_fatal(logger, msg) \
|
#define poco_fatal(logger, msg) \
|
||||||
if ((logger).fatal()) (logger).fatal(msg) else (void) 0
|
if ((logger).fatal()) (logger).fatal(msg); else (void) 0
|
||||||
|
|
||||||
#define poco_critical(logger, msg) \
|
#define poco_critical(logger, msg) \
|
||||||
if ((logger).critical()) (logger).critical(msg) else (void) 0
|
if ((logger).critical()) (logger).critical(msg); else (void) 0
|
||||||
|
|
||||||
#define poco_error(logger, msg) \
|
#define poco_error(logger, msg) \
|
||||||
if ((logger).error()) (logger).error(msg) else (void) 0
|
if ((logger).error()) (logger).error(msg); else (void) 0
|
||||||
|
|
||||||
#define poco_warning(logger, msg) \
|
#define poco_warning(logger, msg) \
|
||||||
if ((logger).warning()) (logger).warning(msg) else (void) 0
|
if ((logger).warning()) (logger).warning(msg); else (void) 0
|
||||||
|
|
||||||
#define poco_notice(logger, msg) \
|
#define poco_notice(logger, msg) \
|
||||||
if ((logger).notice()) (logger).notice(msg) else (void) 0
|
if ((logger).notice()) (logger).notice(msg); else (void) 0
|
||||||
|
|
||||||
#define poco_information(logger, msg) \
|
#define poco_information(logger, msg) \
|
||||||
if ((logger).information()) (logger).information(msg) else (void) 0
|
if ((logger).information()) (logger).information(msg); else (void) 0
|
||||||
|
|
||||||
#if defined(_DEBUG)
|
#if defined(_DEBUG)
|
||||||
#define poco_debug(logger, msg) \
|
#define poco_debug(logger, msg) \
|
||||||
if ((logger).debug()) (logger).debug(msg) else (void) 0
|
if ((logger).debug()) (logger).debug(msg); else (void) 0
|
||||||
|
|
||||||
#define poco_trace(logger, msg) \
|
#define poco_trace(logger, msg) \
|
||||||
if ((logger).trace()) (logger).trace(msg) else (void) 0
|
if ((logger).trace()) (logger).trace(msg); else (void) 0
|
||||||
#else
|
#else
|
||||||
#define poco_debug(logger, msg)
|
#define poco_debug(logger, msg)
|
||||||
#define poco_trace(logger, msg)
|
#define poco_trace(logger, msg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user