Classes | Defines | Functions
Log2.h File Reference
#include <map>
#include <vector>
#include "Log.h"
Include dependency graph for Log2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CLog2
class  CLog2Factory

Defines

#define AT   __FILE__ ":" TOSTRING(__LINE__)
#define LOG2(obj, str, level)   do {if ((level) >= (obj).getLevel()) { CCriticalSection logsection((obj).getStream()); (obj)(level) << str;}} while (0)
#define LOG2HDRDELIMLEFT   "["
#define LOG2HDRDELIMRIGHT   "] "
#define LOG2OPENFILESSOFTLIMIT   100
#define logClean(obj, str)   LOG2(obj, str, llClean)
#define logCleanLn(obj, str)   logClean(obj, str << std::endl)
#define logCrawl(obj, str)   do {} while (0)
#define logCrawlLn(obj, str)   logCrawl(obj, str << std::endl)
#define logCritical(obj, str)   LOG2(obj, str, llCritical)
#define logCriticalLn(obj, str)   logCritical(obj, str << std::endl)
#define logDebug(obj, str)   LOG2(obj, str, llDebug)
#define logDebugLn(obj, str)   logDebug(obj, str << std::endl)
#define logError(obj, str)   LOG2(obj, str, llError)
#define logErrorLn(obj, str)   logError(obj, str << std::endl)
#define logInfo(obj, str)   LOG2(obj, str, llInfo)
#define logInfoLn(obj, str)   logInfo(obj, str << std::endl)
#define logNotice(obj, str)   LOG2(obj, str, llNotice)
#define logNoticeLn(obj, str)   logNotice(obj, str << std::endl)
#define logWarning(obj, str)   LOG2(obj, str, llWarning)
#define logWarningLn(obj, str)   logWarning(obj, str << std::endl)
#define mLogAssert(B)   logAssertLnInternal(mLog, "Assertion failed at " AT ": " #B, llError, B)
#define mLogClean(str)   logClean(mLog, str)
#define mLogCleanLn(str)   logCleanLn(mLog, str)
#define mLogCrawl(str)   logCrawl(mLog, str)
#define mLogCrawlLn(str)   logCrawlLn(mLog, str)
#define mLogCritical(str)   logCritical(mLog, str)
#define mLogCriticalLn(str)   logCriticalLn(mLog, str)
#define mLogDebug(str)   logDebug(mLog, str)
#define mLogDebugLn(str)   logDebugLn(mLog, str)
#define mLogError(str)   logError(mLog, str)
#define mLogErrorLn(str)   logErrorLn(mLog, str)
#define mLogInfo(str)   logInfo(mLog, str)
#define mLogInfoLn(str)   logInfoLn(mLog, str)
#define mLogNotice(str)   logNotice(mLog, str)
#define mLogNoticeLn(str)   logNoticeLn(mLog, str)
#define mLogWarning(str)   logWarning(mLog, str)
#define mLogWarningLn(str)   logWarningLn(mLog, str)
#define STRINGIFY(x)   #x
#define TOSTRING(x)   STRINGIFY(x)

Functions

CLog2FactorygLogFactory ()
bool logAssertLnInternal (CLog2 &log, const char *msg, ELogLevel level, bool condition)

Define Documentation

#define AT   __FILE__ ":" TOSTRING(__LINE__)

Definition at line 47 of file Log2.h.

#define LOG2 (   obj,
  str,
  level 
)    do {if ((level) >= (obj).getLevel()) { CCriticalSection logsection((obj).getStream()); (obj)(level) << str;}} while (0)

Definition at line 49 of file Log2.h.

#define LOG2HDRDELIMLEFT   "["

Definition at line 94 of file Log2.h.

#define LOG2HDRDELIMRIGHT   "] "

Definition at line 95 of file Log2.h.

#define LOG2OPENFILESSOFTLIMIT   100

Definition at line 96 of file Log2.h.

#define logClean (   obj,
  str 
)    LOG2(obj, str, llClean)

Definition at line 63 of file Log2.h.

#define logCleanLn (   obj,
  str 
)    logClean(obj, str << std::endl)

Definition at line 72 of file Log2.h.

#define logCrawl (   obj,
  str 
)    do {} while (0)

Definition at line 54 of file Log2.h.

#define logCrawlLn (   obj,
  str 
)    logCrawl(obj, str << std::endl)

Definition at line 65 of file Log2.h.

#define logCritical (   obj,
  str 
)    LOG2(obj, str, llCritical)

Definition at line 62 of file Log2.h.

#define logCriticalLn (   obj,
  str 
)    logCritical(obj, str << std::endl)

Definition at line 71 of file Log2.h.

#define logDebug (   obj,
  str 
)    LOG2(obj, str, llDebug)

Definition at line 57 of file Log2.h.

#define logDebugLn (   obj,
  str 
)    logDebug(obj, str << std::endl)

Definition at line 66 of file Log2.h.

#define logError (   obj,
  str 
)    LOG2(obj, str, llError)

Definition at line 61 of file Log2.h.

#define logErrorLn (   obj,
  str 
)    logError(obj, str << std::endl)

Definition at line 70 of file Log2.h.

#define logInfo (   obj,
  str 
)    LOG2(obj, str, llInfo)

Definition at line 58 of file Log2.h.

#define logInfoLn (   obj,
  str 
)    logInfo(obj, str << std::endl)

Definition at line 67 of file Log2.h.

#define logNotice (   obj,
  str 
)    LOG2(obj, str, llNotice)

Definition at line 59 of file Log2.h.

#define logNoticeLn (   obj,
  str 
)    logNotice(obj, str << std::endl)

Definition at line 68 of file Log2.h.

#define logWarning (   obj,
  str 
)    LOG2(obj, str, llWarning)

Definition at line 60 of file Log2.h.

#define logWarningLn (   obj,
  str 
)    logWarning(obj, str << std::endl)

Definition at line 69 of file Log2.h.

#define mLogAssert (   B)    logAssertLnInternal(mLog, "Assertion failed at " AT ": " #B, llError, B)

Definition at line 91 of file Log2.h.

#define mLogClean (   str)    logClean(mLog, str)

Definition at line 81 of file Log2.h.

#define mLogCleanLn (   str)    logCleanLn(mLog, str)

Definition at line 90 of file Log2.h.

#define mLogCrawl (   str)    logCrawl(mLog, str)

Definition at line 74 of file Log2.h.

#define mLogCrawlLn (   str)    logCrawlLn(mLog, str)

Definition at line 83 of file Log2.h.

#define mLogCritical (   str)    logCritical(mLog, str)

Definition at line 80 of file Log2.h.

#define mLogCriticalLn (   str)    logCriticalLn(mLog, str)

Definition at line 89 of file Log2.h.

#define mLogDebug (   str)    logDebug(mLog, str)

Definition at line 75 of file Log2.h.

#define mLogDebugLn (   str)    logDebugLn(mLog, str)

Definition at line 84 of file Log2.h.

#define mLogError (   str)    logError(mLog, str)

Definition at line 79 of file Log2.h.

#define mLogErrorLn (   str)    logErrorLn(mLog, str)

Definition at line 88 of file Log2.h.

#define mLogInfo (   str)    logInfo(mLog, str)

Definition at line 76 of file Log2.h.

#define mLogInfoLn (   str)    logInfoLn(mLog, str)

Definition at line 85 of file Log2.h.

#define mLogNotice (   str)    logNotice(mLog, str)

Definition at line 77 of file Log2.h.

#define mLogNoticeLn (   str)    logNoticeLn(mLog, str)

Definition at line 86 of file Log2.h.

#define mLogWarning (   str)    logWarning(mLog, str)

Definition at line 78 of file Log2.h.

#define mLogWarningLn (   str)    logWarningLn(mLog, str)

Definition at line 87 of file Log2.h.

#define STRINGIFY (   x)    #x

Definition at line 45 of file Log2.h.

#define TOSTRING (   x)    STRINGIFY(x)

Definition at line 46 of file Log2.h.


Function Documentation

Definition at line 46 of file StdLog2.cpp.

bool logAssertLnInternal ( CLog2 log,
const char *  msg,
ELogLevel  level,
bool  condition 
) [inline]

Definition at line 313 of file Log2.h.



threemxl
Author(s):
autogenerated on Fri Aug 28 2015 13:21:08