| v2.10-0 (21000JUN2005) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class handles all logging messages inside Go4.
Should replace the previous Trace mechanism.
Field Summary | |
private static Bool_t | fgbAutoMode User boolean to write log on demand or not |
private static Bool_t | fgbLogfileEnabled General switch on/off log file output |
private static Bool_t | fgbOutputEnabled General switch on/off log output |
const static const Text_t[] | fgcDEBUG System debug message indicator |
const static const Text_t[] | fgcDEFAULTLOG Name of default logfile |
const static const Text_t[] | fgcERR Error message indicator |
const static const Text_t[] | fgcINFO Info message indicator |
const static const Text_t[] | fgcLEFT Prompt character left side |
private static Text_t[1024] | fgcMessagetext Keeps latest message with all format indicators |
const static const Text_t[] | fgcRIGHT Prompt character right side |
const static const Text_t[] | fgcWARN Warning message indicator |
private static Int_t | fgiIgnoreLevel all Messages with lower level are suppressed |
const static const UInt_t | fguMESLEN Maximum message length allowd |
private static TGo4Log* | fgxInstance |
private static std::ofstream* | fgxLogfile optional logfile to store messages with time |
private static TString | fgxLogName Name of last logfile set |
private static TMutex* | fgxMutex we use own mutex to protect the logging instance |
Constructor Summary | |
private | TGo4Log() |
Destructor Summary | |
virtual synchronized | ~TGo4Log() |
Method Summary | |
static void | AutoEnable(Bool_t on) set boolean for user action |
static void | CloseLogfile() Close logfile if existing |
static void | Debug(const Text_t* text, ... ) User shortcut for message with prio 0 |
static void | Error(const Text_t* text, ... ) User shortcut for message with prio 3 |
static Int_t | GetIgnoreLevel() Get threshold for output |
const static const Text_t* | GetLogname() get name of last opened logfile |
static void | Info(const Text_t* text, ... ) User shortcut for message with prio 1 |
static TGo4Log* | Instance() |
static Bool_t | IsAutoEnabled() get current user boolean |
static Bool_t | IsLogfileEnabled() get current logfile state |
static Bool_t | IsOutputEnabled() get current output state |
static void | LogfileEnable(Bool_t on) switch writing to logfile on or off |
const static const Text_t* | Message(Int_t prio, const Text_t* text, ... ) Display a message. |
static void | OpenLogfile(const Text_t* name, const Text_t* headercomment, Bool_t appendmode) Open file of name for logmessage output. |
static void | OutputEnable(Bool_t on) switch output on or off |
static void | set_trace_level(int ) dummy for compatibility |
static void | SetIgnoreLevel(Int_t level) Define threshold for output |
static void | SetTracePriority(int ) dummy for compatibility |
static void | StartTracing() For backward compatibility |
static void | StopTracing() For backward compatibility |
static void | Warn(const Text_t* text, ... ) User shortcut for message with prio 2 |
static void | WriteLogfile(const Text_t* text, Bool_t withtime) Write text to current logfile if this is open. |
Field Detail |
private static Bool_t fgbAutoMode
private static Bool_t fgbLogfileEnabled
private static Bool_t fgbOutputEnabled
public const static const Text_t[] fgcDEBUG
public const static const Text_t[] fgcDEFAULTLOG
public const static const Text_t[] fgcERR
public const static const Text_t[] fgcINFO
public const static const Text_t[] fgcLEFT
private static Text_t[1024] fgcMessagetext
public const static const Text_t[] fgcRIGHT
public const static const Text_t[] fgcWARN
private static Int_t fgiIgnoreLevel
public const static const UInt_t fguMESLEN
private static TGo4Log* fgxInstance
private static std::ofstream* fgxLogfile
private static TString fgxLogName
private static TMutex* fgxMutex
Constructor Detail |
private TGo4Log()
Method Detail |
public virtual synchronized ~TGo4Log()
Method Detail |
public static void AutoEnable(Bool_t on)
public static void CloseLogfile()
public static void Debug(const Text_t* text, ... )
public static void Error(const Text_t* text, ... )
public static Int_t GetIgnoreLevel()
public const static const Text_t* GetLogname()
public static void Info(const Text_t* text, ... )
public static TGo4Log* Instance()
public static Bool_t IsAutoEnabled()
public static Bool_t IsLogfileEnabled()
public static Bool_t IsOutputEnabled()
public static void LogfileEnable(Bool_t on)
public const static const Text_t* Message(Int_t prio, const Text_t* text, ... )
public static void OpenLogfile(const Text_t* name, const Text_t* headercomment, Bool_t appendmode)
public static void OutputEnable(Bool_t on)
public static void set_trace_level(int )
public static void SetIgnoreLevel(Int_t level)
public static void SetTracePriority(int )
public static void StartTracing()
public static void StopTracing()
public static void Warn(const Text_t* text, ... )
public static void WriteLogfile(const Text_t* text, Bool_t withtime)
Association Links |
to Class TMutex
| J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |