/home/bradarant/barant/ServerCore/Log.h
#ifndef __Log_h__
#define __Log_h__
#include "includes"
#include "File.h"
#include "Object.h"
namespace core {
class ConsoleServer;
static const int LOG_NONE = 0;
static const int LOG_INFO = 1;
static const int LOG_WARN = 2;
static const int LOG_EXCEPT = 4;
static const int LOG_DEBUG_1 = 8;
static const int LOG_DEBUG_2 = 16;
static const int LOG_DEBUG_3 = 32;
static const int LOG_DEBUG_4 = 64;
class Log : public std::ostringstream, public Object {
public:
Log(ConsoleServer *consoleServer);
Log(File *logFile);
Log(int level);
~Log();
bool output = false;
static ConsoleServer *consoleServer;
static File *logFile;
static int seq;
};
}
#endif
core::Log
Definition: Log.h:28
core::File
Definition: File.h:14
core
Definition: Command.cpp:4
core::Log::seq
static int seq
Definition: Log.h:88
core::Log::consoleServer
static ConsoleServer * consoleServer
Definition: Log.h:74
core::Log::logFile
static File * logFile
Definition: Log.h:81
core::Log::~Log
~Log()
Definition: Log.cpp:62
core::Object
Definition: Object.h:8
core::Log::Log
Log(ConsoleServer *consoleServer)
Definition: Log.cpp:11
core::ConsoleServer
Definition: ConsoleServer.h:19