Planeshift
|
#include "util/singleton.h"
#include "ivaria/reporter.h"
#include <iutil/vfs.h>
Go to the source code of this file.
Classes | |
class | LogCSV |
Namespaces | |
namespace | pslog |
Defines | |
#define | Bug1(a) { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_BUG, LOG_ANY, 0, a); } |
#define | Bug2(a, b) { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_BUG, LOG_ANY, 0, a, b); } |
#define | Bug3(a, b, c) { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_BUG, LOG_ANY, 0, a, b, c); } |
#define | Bug4(a, b, c, d) { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_BUG, LOG_ANY, 0, a, b, c, d); } |
#define | Bug5(a, b, c, d, e) { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_BUG, LOG_ANY, 0, a, b, c, d, e); } |
#define | Bug6(a, b, c, d, e, f) { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_BUG, LOG_ANY, 0, a, b, c, d, e, f); } |
#define | Debug(type, filter_id,...) |
#define | Debug1(type, filter_id, a) |
#define | Debug2(type, filter_id, a, b) |
#define | Debug3(type, filter_id, a, b, c) |
#define | Debug4(type, filter_id, a, b, c, d) |
#define | Debug5(type, filter_id, a, b, c, d, e) |
#define | Debug6(type, filter_id, a, b, c, d, e, f) |
#define | Debug7(type, filter_id, a, b, c, d, e, f, g) |
#define | Debug8(type, filter_id, a, b, c, d, e, f, g, h) |
#define | DoLogBug(type) pslog::DoLog( CS_REPORTER_SEVERITY_BUG, type, 0) |
#define | DoLogDebug(type) pslog::DoLog( CS_REPORTER_SEVERITY_DEBUG, type, 0) |
#define | DoLogDebug2(type, filter_id) pslog::DoLog( CS_REPORTER_SEVERITY_DEBUG, type, filter_id) |
#define | DoLogError(type) pslog::DoLog( CS_REPORTER_SEVERITY_ERROR, type, 0) |
#define | DoLogNotify(type) pslog::DoLog( CS_REPORTER_SEVERITY_NOTIFY, type, 0) |
#define | DoLogWarning(type) pslog::DoLog( CS_REPORTER_SEVERITY_WARNING, type, 0) |
#define | Error1(a) { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_ERROR, LOG_ANY, 0, a); } |
#define | Error2(a, b) { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_ERROR, LOG_ANY, 0, a, b); } |
#define | Error3(a, b, c) { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_ERROR, LOG_ANY, 0, a, b, c); } |
#define | Error4(a, b, c, d) { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_ERROR, LOG_ANY, 0, a, b, c, d); } |
#define | Error5(a, b, c, d, e) { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_ERROR, LOG_ANY, 0, a, b, c, d, e); } |
#define | Error6(a, b, c, d, e, f) { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_ERROR, LOG_ANY, 0, a, b, c, d, e, f); } |
#define | Notify1(type, a) |
#define | Notify2(type, a, b) |
#define | Notify3(type, a, b, c) |
#define | Notify4(type, a, b, c, d) |
#define | Notify5(type, a, b, c, d, e) |
#define | Notify6(type, a, b, c, d, e, f) |
#define | Notify7(type, a, b, c, d, e, f, g) |
#define | Notify8(type, a, b, c, d, e, f, g, h) |
#define | Notify9(type, a, b, c, d, e, f, g, h, i) |
#define | Warning1(type, a) |
#define | Warning2(type, a, b) |
#define | Warning3(type, a, b, c) |
#define | Warning4(type, a, b, c, d) |
#define | Warning5(type, a, b, c, d, e) |
#define | Warning6(type, a, b, c, d, e, f) |
Enumerations | |
enum | { CSV_AUTHENT, CSV_EXCHANGES, CSV_PALADIN, CSV_STATUS, CSV_ADVICE, CSV_ECONOMY, CSV_STUCK, CSV_SQL, MAX_CSV } |
enum | LOG_TYPES { LOG_ANY, LOG_WEATHER, LOG_SPAWN, LOG_CELPERSIST, LOG_PAWS, LOG_GROUP, LOG_CHEAT, LOG_LINMOVE, LOG_SPELLS, LOG_NEWCHAR, LOG_SUPERCLIENT, LOG_EXCHANGES, LOG_ADMIN, LOG_STARTUP, LOG_CHARACTER, LOG_CONNECTIONS, LOG_CHAT, LOG_NET, LOG_LOAD, LOG_NPC, LOG_TRADE, LOG_SOUND, LOG_COMBAT, LOG_SKILLXP, LOG_QUESTS, LOG_SCRIPT, LOG_RELATIONSHIPS, LOG_MESSAGES, LOG_CACHE, LOG_PETS, LOG_USER, LOG_LOOT, LOG_MINIGAMES, LOG_DRDATA, LOG_ACTIONLOCATION, LOG_ITEM, LOG_HIRE, MAX_FLAGS } |
Functions | |
void | pslog::DisplayFlags (const char *name=NULL) |
bool | pslog::DoLog (int severity, LOG_TYPES type, uint32 filter_id) |
const char * | pslog::GetName (int id) |
const char * | pslog::GetSettingName (int id) |
bool | pslog::GetValue (const char *name) |
void void | pslog::Initialize (iObjectRegistry *object_reg) |
void | pslog::LogMessage (const char *file, int line, const char *function, int severity, LOG_TYPES type, uint32 filter_id, const char *msg,...) CS_GNUC_PRINTF(7 |
void | pslog::SetFlag (const char *name, bool flag, uint32 filter) |
Variables | |
bool | pslog::disp_flag [MAX_FLAGS] |
iObjectRegistry * | pslog::logger |
#define Bug1 | ( | a | ) | { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_BUG, LOG_ANY, 0, a); } |
#define Bug2 | ( | a, | |
b | |||
) | { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_BUG, LOG_ANY, 0, a, b); } |
#define Bug3 | ( | a, | |
b, | |||
c | |||
) | { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_BUG, LOG_ANY, 0, a, b, c); } |
#define Bug4 | ( | a, | |
b, | |||
c, | |||
d | |||
) | { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_BUG, LOG_ANY, 0, a, b, c, d); } |
#define Bug5 | ( | a, | |
b, | |||
c, | |||
d, | |||
e | |||
) | { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_BUG, LOG_ANY, 0, a, b, c, d, e); } |
#define Bug6 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f | |||
) | { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_BUG, LOG_ANY, 0, a, b, c, d, e, f); } |
#define Debug | ( | type, | |
filter_id, | |||
... | |||
) |
{ if (DoLogDebug2(type,filter_id)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_DEBUG, type, filter_id, __VA_ARGS__ ); }}
#define Debug1 | ( | type, | |
filter_id, | |||
a | |||
) |
{ if (DoLogDebug2(type,filter_id)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_DEBUG, type, filter_id, a); }}
#define Debug2 | ( | type, | |
filter_id, | |||
a, | |||
b | |||
) |
{ if (DoLogDebug2(type,filter_id)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_DEBUG, type, filter_id, a, b); }}
#define Debug3 | ( | type, | |
filter_id, | |||
a, | |||
b, | |||
c | |||
) |
{ if (DoLogDebug2(type,filter_id)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_DEBUG, type, filter_id, a, b, c); }}
#define Debug4 | ( | type, | |
filter_id, | |||
a, | |||
b, | |||
c, | |||
d | |||
) |
{ if (DoLogDebug2(type,filter_id)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_DEBUG, type, filter_id, a, b, c, d); }}
#define Debug5 | ( | type, | |
filter_id, | |||
a, | |||
b, | |||
c, | |||
d, | |||
e | |||
) |
{ if (DoLogDebug2(type,filter_id)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_DEBUG, type, filter_id, a, b, c, d, e); }}
#define Debug6 | ( | type, | |
filter_id, | |||
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f | |||
) |
{ if (DoLogDebug2(type,filter_id)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_DEBUG, type, filter_id, a, b, c, d, e, f); }}
#define Debug7 | ( | type, | |
filter_id, | |||
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g | |||
) |
{ if (DoLogDebug2(type,filter_id)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_DEBUG, type, filter_id, a, b, c, d, e, f, g); }}
#define Debug8 | ( | type, | |
filter_id, | |||
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h | |||
) |
{ if (DoLogDebug2(type,filter_id)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_DEBUG, type, filter_id, a, b, c, d, e, f, g, h); }}
#define DoLogBug | ( | type | ) | pslog::DoLog( CS_REPORTER_SEVERITY_BUG, type, 0) |
#define DoLogDebug | ( | type | ) | pslog::DoLog( CS_REPORTER_SEVERITY_DEBUG, type, 0) |
#define DoLogDebug2 | ( | type, | |
filter_id | |||
) | pslog::DoLog( CS_REPORTER_SEVERITY_DEBUG, type, filter_id) |
#define DoLogError | ( | type | ) | pslog::DoLog( CS_REPORTER_SEVERITY_ERROR, type, 0) |
#define DoLogNotify | ( | type | ) | pslog::DoLog( CS_REPORTER_SEVERITY_NOTIFY, type, 0) |
#define DoLogWarning | ( | type | ) | pslog::DoLog( CS_REPORTER_SEVERITY_WARNING, type, 0) |
#define Error1 | ( | a | ) | { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_ERROR, LOG_ANY, 0, a); } |
#define Error2 | ( | a, | |
b | |||
) | { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_ERROR, LOG_ANY, 0, a, b); } |
#define Error3 | ( | a, | |
b, | |||
c | |||
) | { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_ERROR, LOG_ANY, 0, a, b, c); } |
#define Error4 | ( | a, | |
b, | |||
c, | |||
d | |||
) | { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_ERROR, LOG_ANY, 0, a, b, c, d); } |
#define Error5 | ( | a, | |
b, | |||
c, | |||
d, | |||
e | |||
) | { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_ERROR, LOG_ANY, 0, a, b, c, d, e); } |
#define Error6 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f | |||
) | { pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_ERROR, LOG_ANY, 0, a, b, c, d, e, f); } |
#define Notify1 | ( | type, | |
a | |||
) |
{ if (DoLogNotify(type)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_NOTIFY, type, 0, a); }}
#define Notify2 | ( | type, | |
a, | |||
b | |||
) |
{ if (DoLogNotify(type)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_NOTIFY, type, 0, a, b); }}
#define Notify3 | ( | type, | |
a, | |||
b, | |||
c | |||
) |
{ if (DoLogNotify(type)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_NOTIFY, type, 0, a, b, c); }}
#define Notify4 | ( | type, | |
a, | |||
b, | |||
c, | |||
d | |||
) |
{ if (DoLogNotify(type)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_NOTIFY, type, 0, a, b, c, d); }}
#define Notify5 | ( | type, | |
a, | |||
b, | |||
c, | |||
d, | |||
e | |||
) |
{ if (DoLogNotify(type)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_NOTIFY, type, 0, a, b, c, d, e); }}
#define Notify6 | ( | type, | |
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f | |||
) |
{ if (DoLogNotify(type)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_NOTIFY, type, 0, a, b, c, d, e, f); }}
#define Notify7 | ( | type, | |
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g | |||
) |
{ if (DoLogNotify(type)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_NOTIFY, type, 0, a, b, c, d, e, f, g); }}
#define Notify8 | ( | type, | |
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h | |||
) |
{ if (DoLogNotify(type)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_NOTIFY, type, 0, a, b, c, d, e, f, g, h, i); }}
#define Notify9 | ( | type, | |
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h, | |||
i | |||
) |
{ if (DoLogNotify(type)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_NOTIFY, type, 0, a, b, c, d, e, f, g, h, i); }}
#define Warning1 | ( | type, | |
a | |||
) |
{ if (DoLogWarning(type)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_WARNING, type, 0, a); }}
#define Warning2 | ( | type, | |
a, | |||
b | |||
) |
{ if (DoLogWarning(type)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_WARNING, type, 0, a, b); }}
#define Warning3 | ( | type, | |
a, | |||
b, | |||
c | |||
) |
{ if (DoLogWarning(type)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_WARNING, type, 0, a, b, c); }}
#define Warning4 | ( | type, | |
a, | |||
b, | |||
c, | |||
d | |||
) |
{ if (DoLogWarning(type)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_WARNING, type, 0, a, b, c, d); }}
#define Warning5 | ( | type, | |
a, | |||
b, | |||
c, | |||
d, | |||
e | |||
) |
{ if (DoLogWarning(type)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_WARNING, type, 0, a, b, c, d, e); }}
#define Warning6 | ( | type, | |
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f | |||
) |
{ if (DoLogWarning(type)){ \ pslog::LogMessage (__FILE__, __LINE__, __FUNCTION__, CS_REPORTER_SEVERITY_WARNING, type, 0, a, b, c, d, e, f); }}