22 #define __MESSAGETEXTLENGTH__ 1024 28 #define GO4MESSAGE( X ) TGo4Log::Message X; 29 #define GO4INFO(X) TGo4Log::Info X ; 30 #define GO4WARN(X) TGo4Log::Warn X ; 31 #define GO4ERROR(X) TGo4Log::Error X ; 33 #if defined(__GNUC__) && !defined(__CINT__) 34 #define GO4_PRINTF_ARGS __attribute__((format(printf, 1, 2))) 35 #define GO4_PRINTF2_ARGS __attribute__((format(printf, 2, 3))) 37 #define GO4_PRINTF_ARGS 38 #define GO4_PRINTF2_ARGS 58 static const char *
GO4SYS();
65 static TString
subGO4SYS(
const char *subdir);
96 const char *headercomment =
nullptr,
97 Bool_t appendmode = kFALSE);
126 static void Printf(Bool_t _stdout,
const char *text);
129 static void PrintRate(ULong64_t cnt,
double rate);
133 static void WriteLogfile(
const char *text, Bool_t withtime = kTRUE);
static const char * GetLogname()
static TGo4Log * Instance()
static TGo4Log * fgxInstance
static const char * fgcWARN
static void Info(const char *text,...) GO4_PRINTF_ARGS
static void WriteLogfile(const char *text, Bool_t withtime=kTRUE)
static void CloseLogfile()
static Bool_t IsOutputEnabled()
static Bool_t fgbLogfileEnabled
static void OpenLogfile(const char *name=nullptr, const char *headercomment=nullptr, Bool_t appendmode=kFALSE)
static const char * GetDefaultLogname()
static Bool_t fgbAutoMode
static void SetIgnoreLevel(Int_t level)
static void OutputEnable(Bool_t on=kTRUE)
static const char * fgcRIGHT
static const char * fgcDEBUG
static Bool_t fgbOutputEnabled
static int fgStdSave
redirected pipe for stdout
static void ProcessRedirection(int kind=0)
static void SetSniffer(TNamed *sniff)
static const char * Message(Int_t prio, const char *text,...) GO4_PRINTF2_ARGS
static void Debug(const char *text,...) GO4_PRINTF_ARGS
static const char * fgcINFO
static const char * GO4INCPATH()
static void EnableRedirection()
static int fgStdPipe[2]
optional object to get all output via SetTitle method
static Bool_t IsLogfileEnabled()
static const char * fgcDEFAULTLOG
static void StopTracing()
static Int_t fgiIgnoreLevel
static void Error(const char *text,...) GO4_PRINTF_ARGS
static TString fgxLogName
static void Printf(Bool_t _stdout, const char *text)
static void PrintRate(ULong64_t cnt, double rate)
static void set_trace_level(int)
static Int_t GetIgnoreLevel()
static TNamed * fgSniffer
value of GO4SYS during run
static void StartTracing()
static TString subGO4SYS(const char *subdir)
static char fgcMessagetext[__MESSAGETEXTLENGTH__]
static const char * fgcLEFT
static const char * GO4SYS()
static TLogTimer * fgTimer
saved file for stdout
static void AutoEnable(Bool_t on=kTRUE)
#define __MESSAGETEXTLENGTH__
static const char * fgcERR
static void SetTracePriority(int)
static void Warn(const char *text,...) GO4_PRINTF_ARGS
static Bool_t IsAutoEnabled()
static void LogfileEnable(Bool_t on=kTRUE)