libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
logging.hpp File Reference
#include "file.hpp"
#include <locale>
#include <cstdlib>
#include <ctime>
Include dependency graph for logging.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  jmmcg::LIBJMMCG_VER_NAMESPACE::Logger< Except_ >
 

Namespaces

namespace  jmmcg
 Link with -lrt to include these functions.
 
namespace  jmmcg::LIBJMMCG_VER_NAMESPACE
 

Macros

#define JMMCG_LOG(logger_, at_level_, msg_)
 

Enumerations

enum  jmmcg::LIBJMMCG_VER_NAMESPACE::log_level_type { jmmcg::LIBJMMCG_VER_NAMESPACE::log_none =0 , jmmcg::LIBJMMCG_VER_NAMESPACE::log_errors , jmmcg::LIBJMMCG_VER_NAMESPACE::log_warnings , jmmcg::LIBJMMCG_VER_NAMESPACE::log_info }
 

Functions

bool jmmcg::LIBJMMCG_VER_NAMESPACE::OutputDateTime (tostream &o, const time_t base_time=time(0), const tstring &fmt=_T("[%b %d %X %Z] "))
 

Variables

const tchar *const jmmcg::LIBJMMCG_VER_NAMESPACE::log_level_strs []
 

Macro Definition Documentation

◆ JMMCG_LOG

#define JMMCG_LOG (   logger_,
  at_level_,
  msg_ 
)
Value:
if ((at_level_)>(logger_)->Level()) { \
; \
} else { \
(logger_)->Log((at_level_),(msg_)); \
}
NTPerformanceObjects::nt_event_log Log(NTUtils::EventLog::err_information, NTUtils::EventLog::cat_custom2, "CollectPerformanceData(...) : Collecting...")

Definition at line 140 of file logging.hpp.