OregonCore  revision 3611e8a-git
Your Favourite TBC server
Log.cpp File Reference
#include "Common.h"
#include "Log.h"
#include "Config/Config.h"
#include "Console.h"
#include "Util.h"
#include <stdarg.h>
#include <stdio.h>

Go to the source code of this file.

Macros

#define logFunctionImpl(name, type, newline, prefix)
 

Functions

 INSTANTIATE_SINGLETON_1 (Log)
 
 logFunctionImpl (outString, LOG_TYPE_STRING, true, NULL) logFunctionImpl(outBasic
 
NULL logFunctionImpl (outDetail, LOG_TYPE_DETAIL, true,"Detail") logFunctionImpl(outDebug
 
NULL Dbg logFunctionImpl (outError, LOG_TYPE_ERROR, true,"Err") logFunctionImpl(outErrorDb
 
NULL Dbg ErrDB logFunctionImpl (outSQL, LOG_TYPE_SQL, true,"SQL") logFunctionImpl(outArena
 
NULL Dbg ErrDB Arena logFunctionImpl (outWarden, LOG_TYPE_WARDEN, true,"Warden") logFunctionImpl(outChat
 
NULL Dbg ErrDB Arena Chat logFunctionImpl (outCommand, LOG_TYPE_COMMAND, true,"CMD") logFunctionImpl(outChar
 
NULL Dbg ErrDB Arena Chat Char logFunctionImpl (outRemote, LOG_TYPE_REMOTE, true,"Remote") logFunctionImpl(outMap
 
NULL Dbg ErrDB Arena Chat Char Map logFunctionImpl (outVMap, LOG_TYPE_VMAP, true,"VMap") logFunctionImpl(outMMap
 
NULL Dbg ErrDB Arena Chat Char Map MMap logFunctionImpl (outNetwork, LOG_TYPE_NETWORK, true,"NET") logFunctionImpl(outDebugInLine
 

Variables

uint32 realmID
 Id of the realm. More...
 
 LOG_TYPE_BASIC
 
 true
 
NULL LOG_TYPE_DEBUG
 
NULL Dbg LOG_TYPE_ERROR_DB
 
NULL Dbg ErrDB LOG_TYPE_ARENA
 
NULL Dbg ErrDB Arena LOG_TYPE_CHAT
 
NULL Dbg ErrDB Arena Chat LOG_TYPE_CHAR
 
NULL Dbg ErrDB Arena Chat Char LOG_TYPE_MAP
 
NULL Dbg ErrDB Arena Chat Char Map LOG_TYPE_MMAP
 
NULL Dbg ErrDB Arena Chat Char Map MMap false
 

Macro Definition Documentation

#define logFunctionImpl (   name,
  type,
  newline,
  prefix 
)
Value:
void Log::name(const char* fmt, ...) \
{ \
if (!((m_logMask | m_logMaskDatabase) & (1 << type))) \
return; \
\
va_list ap; \
va_start(ap, fmt); \
DoLog(type, newline, prefix, fmt, ap, NULL); \
va_end(ap); \
}

Definition at line 521 of file Log.cpp.

Function Documentation

INSTANTIATE_SINGLETON_1 ( Log  )
logFunctionImpl ( outString  ,
LOG_TYPE_STRING  ,
true  ,
NULL   
)
NULL logFunctionImpl ( outDetail  ,
LOG_TYPE_DETAIL  ,
true  ,
"Detail"   
)
NULL Dbg logFunctionImpl ( outError  ,
LOG_TYPE_ERROR  ,
true  ,
"Err"   
)
NULL Dbg ErrDB logFunctionImpl ( outSQL  ,
LOG_TYPE_SQL  ,
true  ,
"SQL"   
)
NULL Dbg ErrDB Arena logFunctionImpl ( outWarden  ,
LOG_TYPE_WARDEN  ,
true  ,
"Warden"   
)
NULL Dbg ErrDB Arena Chat logFunctionImpl ( outCommand  ,
LOG_TYPE_COMMAND  ,
true  ,
"CMD"   
)
NULL Dbg ErrDB Arena Chat Char logFunctionImpl ( outRemote  ,
LOG_TYPE_REMOTE  ,
true  ,
"Remote"   
)
NULL Dbg ErrDB Arena Chat Char Map logFunctionImpl ( outVMap  ,
LOG_TYPE_VMAP  ,
true  ,
"VMap"   
)
NULL Dbg ErrDB Arena Chat Char Map MMap logFunctionImpl ( outNetwork  ,
LOG_TYPE_NETWORK  ,
true  ,
"NET"   
)

Variable Documentation

NULL Dbg ErrDB Arena Chat Char Map MMap false

Definition at line 556 of file Log.cpp.

NULL Dbg ErrDB LOG_TYPE_ARENA

Definition at line 542 of file Log.cpp.

Referenced by Log::Initialize().

LOG_TYPE_BASIC

Definition at line 534 of file Log.cpp.

Referenced by Log::Initialize().

NULL Dbg ErrDB Arena Chat LOG_TYPE_CHAR
NULL Dbg ErrDB Arena LOG_TYPE_CHAT

Definition at line 544 of file Log.cpp.

Referenced by Log::Initialize().

NULL Dbg ErrDB Arena Chat Char Map MMap LOG_TYPE_DEBUG

Definition at line 536 of file Log.cpp.

Referenced by Database::_Query(), Database::DirectExecute(), and Log::Initialize().

NULL Dbg LOG_TYPE_ERROR_DB

Definition at line 539 of file Log.cpp.

Referenced by Log::Initialize().

NULL Dbg ErrDB Arena Chat Char LOG_TYPE_MAP

Definition at line 550 of file Log.cpp.

Referenced by Log::Initialize().

NULL Dbg ErrDB Arena Chat Char Map LOG_TYPE_MMAP

Definition at line 552 of file Log.cpp.

Referenced by Log::Initialize().

uint32 realmID

Id of the realm.

Definition at line 57 of file Main.cpp.

Referenced by Log::outDB().

NULL Dbg ErrDB Arena Chat Char Map true

Definition at line 534 of file Log.cpp.