#include <Logger.h>
Inheritance diagram for Impala::Logger:
Public Member Functions | |
virtual | ~Logger () |
Logger & | operator<< (String log) |
Logger & | operator<< (std::ostream &(*f)(std::ostream &)) |
Static Public Member Functions | |
static void | Configure (int logLevel, String logFile, bool debug) |
static LogType | Debug (int level=Logger::LOG_DEBUG) |
static LogType | Log (int level=Logger::LOG_INFO) |
static LogType | User () |
static LogType | System () |
static LogType | Error () |
static LogType | Warning () |
static LogType | Information () |
static void | StartAction (String actionName, int level=LOG_USER) |
static double | EndAction (String actionName) |
static void | OpenPartLog () |
static void | ClosePartLog (String filename) |
Static Public Attributes | |
static const int | LOG_DEBUG = 1 |
static const int | LOG_INFO = 2 |
static const int | LOG_WARNING = 3 |
static const int | LOG_ERROR = 4 |
static const int | LOG_ACTION = 5 |
static const int | LOG_SYSTEM = 6 |
static const int | LOG_USER = 7 |
Protected Member Functions | |
virtual void | LogString (String log, bool isPartial=false, int level=LOG_DEBUG) |
void | EndLine (int level) |
String | GetHeader (int level) |
void | DoOpenPartLog () |
void | DoClosePartLog (String filename) |
Private Member Functions | |
Logger () | |
void | Init (int logLevel, String logFile, bool debug) |
Static Private Member Functions | |
static Logger & | GetInstance () |
Private Attributes | |
std::map< String, double > | mActionTimes |
std::map< String, int > | mActionLevels |
String | mLogFile |
bool | mLogToFile |
bool | mLineStarted |
int | mShowLevel |
Timer * | mTimer |
std::fstream * | mLog |
std::ostringstream * | mPLog |
std::fstream * | mErrorLog |
Definition at line 74 of file Logger.h.