-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathlogging.h
32 lines (22 loc) · 824 Bytes
/
logging.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once
namespace nextapp::logging {
} // ns
#if !defined(WIN32) && !defined(__APPLE__) && __has_include(<sys/syscall.h>)
# define LOGFAULT_USE_TID_AS_NAME 1
#endif
#ifdef ERROR
// Thank you SO much Microsoft!
# undef ERROR
#endif
#include "logfault/logfault.h"
#define LOG_NONE ::logfault::LogLevel::DISABLED
#define LOG_ERROR LFLOG_ERROR
#define LOG_WARN LFLOG_WARN
#define LOG_INFO LFLOG_INFO
#define LOG_DEBUG LFLOG_DEBUG
#define LOG_TRACE LFLOG_TRACE
#define LOG_ERROR_N LFLOG_ERROR << __PRETTY_FUNCTION__ << " - "
#define LOG_WARN_N LFLOG_WARN << __PRETTY_FUNCTION__ << " - "
#define LOG_INFO_N LFLOG_INFO << __PRETTY_FUNCTION__ << " - "
#define LOG_DEBUG_N LFLOG_DEBUG << __PRETTY_FUNCTION__ << " - "
#define LOG_TRACE_N LFLOG_TRACE << __PRETTY_FUNCTION__ << " - "