Basic logging tool.
More...
#include <QString>
#include "Exception.h"
|
#define | LOG_MAX_MESSAGE_LENGTH 2048 |
|
#define | LOG_FUNCTION_ __FILE__ |
|
#define | LOG_DEBUG(msg) do { if( Log::minLevel <= Log::LEVEL_DEBUG ) LogAction(Log::LEVEL_DEBUG, __FILE__, __LINE__, LOG_FUNCTION_ ) << msg; } while(0) |
|
#define | LOG_TRACE(msg) do { if( Log::minLevel <= Log::LEVEL_TRACE ) LogAction(Log::LEVEL_TRACE, __FILE__, __LINE__, LOG_FUNCTION_ ) << msg; } while(0) |
|
#define | LOG_INFO(msg) do { if( Log::minLevel <= Log::LEVEL_INFO ) LogAction(Log::LEVEL_INFO, __FILE__, __LINE__, LOG_FUNCTION_ ) << msg; } while(0) |
|
#define | LOG_WARNING(msg) do { if( Log::minLevel <= Log::LEVEL_WARNING) LogAction(Log::LEVEL_WARNING, __FILE__, __LINE__, LOG_FUNCTION_ ) << msg; } while(0) |
|
#define | LOG_ERROR(msg) do { if( Log::minLevel <= Log::LEVEL_ERROR ) LogAction(Log::LEVEL_ERROR, __FILE__, __LINE__, LOG_FUNCTION_ ) << msg; } while(0) |
|
#define | LOG_THROW_E(EXCEPTION, msg) |
|
#define | LOG_THROW(msg) |
|
#define | assert(e) |
|
Basic logging tool.
- Author
- JD Gascuel.
- Copyright
- (c) 2011-2016 JD Gascuel. All rights reserved.
- Id
- Log.h,v ecd627c6ae3a 2016/09/13 15:08:18 jDG
Value:
} while(0)
#define LOG_THROW(msg)
Definition: Log.h:232
#define LOG_FUNCTION_ __FILE__ |
#define LOG_MAX_MESSAGE_LENGTH 2048 |
Value:do { \
log << msg; \
throw ::Exception(log.message); \
} while(0)
Error that is mean to be catched, and corrected automatically.
Definition: Log.h:91
#define LOG_FUNCTION_
Definition: Log.h:213
#define LOG_THROW_E |
( |
|
EXCEPTION, |
|
|
|
msg |
|
) |
| |
Value:do { \
log << msg; \
throw EXCEPTION(log.message); \
} while(0)
Error that is mean to be catched, and corrected automatically.
Definition: Log.h:91
#define LOG_FUNCTION_
Definition: Log.h:213