GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Static Private Attributes | Friends | List of all members
TGo4Log Class Reference

#include <TGo4Log.h>

Public Types

enum  { fguMESLEN = __MESSAGETEXTLENGTH__ }
 

Public Member Functions

virtual ~TGo4Log ()
 

Static Public Member Functions

static TGo4LogInstance ()
 
static const char * GO4SYS ()
 
static const char * GO4INCPATH ()
 
static TString subGO4SYS (const char *subdir)
 
static void SetIgnoreLevel (Int_t level)
 
static Int_t GetIgnoreLevel ()
 
static void OutputEnable (Bool_t on=kTRUE)
 
static Bool_t IsOutputEnabled ()
 
static void LogfileEnable (Bool_t on=kTRUE)
 
static Bool_t IsLogfileEnabled ()
 
static void AutoEnable (Bool_t on=kTRUE)
 
static Bool_t IsAutoEnabled ()
 
static void OpenLogfile (const char *name=nullptr, const char *headercomment=nullptr, Bool_t appendmode=kFALSE)
 
static void CloseLogfile ()
 
static const char * GetLogname ()
 
static const char * Message (Int_t prio, const char *text,...) GO4_PRINTF2_ARGS
 
static void Debug (const char *text,...) GO4_PRINTF_ARGS
 
static void Info (const char *text,...) GO4_PRINTF_ARGS
 
static void Warn (const char *text,...) GO4_PRINTF_ARGS
 
static void Error (const char *text,...) GO4_PRINTF_ARGS
 
static void Printf (Bool_t _stdout, const char *text)
 
static void PrintRate (ULong64_t cnt, double rate)
 
static void WriteLogfile (const char *text, Bool_t withtime=kTRUE)
 
static void set_trace_level (int)
 
static void SetTracePriority (int)
 
static void StartTracing ()
 
static void StopTracing ()
 
static const char * GetDefaultLogname ()
 
static void SetSniffer (TNamed *sniff)
 
static void EnableRedirection ()
 

Static Public Attributes

static const char * fgcLEFT = "GO4-"
 
static const char * fgcRIGHT = " "
 
static const char * fgcDEBUG = "d"
 
static const char * fgcINFO = "*"
 
static const char * fgcWARN = "#"
 
static const char * fgcERR = "!"
 
static const char * fgcDEFAULTLOG = "go4logfile.txt"
 

Private Member Functions

 TGo4Log ()
 

Static Private Member Functions

static void ProcessRedirection (int kind=0)
 

Static Private Attributes

static TGo4LogfgxInstance = nullptr
 
static TMutex * fgxMutex = nullptr
 
static Int_t fgiIgnoreLevel = 1
 
static Bool_t fgbOutputEnabled = kTRUE
 
static Bool_t fgbLogfileEnabled = kFALSE
 
static Bool_t fgbAutoMode = kFALSE
 
static char fgcMessagetext [__MESSAGETEXTLENGTH__]
 
static void * fgxLogfile = nullptr
 
static TString fgxLogName = TGo4Log::fgcDEFAULTLOG
 
static TString fgsGO4SYS = ""
 
static TNamed * fgSniffer = nullptr
 value of GO4SYS during run More...
 
static int fgStdPipe [2] = {-1, -1}
 optional object to get all output via SetTitle method More...
 
static int fgStdSave = -1
 redirected pipe for stdout More...
 
static TLogTimerfgTimer = nullptr
 saved file for stdout More...
 

Friends

class TLogTimer
 

Detailed Description

This class handles all logging messages inside Go4. Should replace the previous Trace mechanism.

Author
J. Adamczewski
Since
17-jun-2003

Definition at line 50 of file TGo4Log.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Maximum message length allowed

Enumerator
fguMESLEN 

Definition at line 172 of file TGo4Log.h.

Constructor & Destructor Documentation

◆ ~TGo4Log()

TGo4Log::~TGo4Log ( )
virtual

Definition at line 80 of file TGo4Log.cxx.

◆ TGo4Log()

TGo4Log::TGo4Log ( )
private

Definition at line 68 of file TGo4Log.cxx.

Member Function Documentation

◆ AutoEnable()

void TGo4Log::AutoEnable ( Bool_t  on = kTRUE)
static

set boolean for user action

Definition at line 373 of file TGo4Log.cxx.

Referenced by TGo4MainWindow::LogSettingsSlot().

◆ CloseLogfile()

void TGo4Log::CloseLogfile ( )
static

Close logfile if existing

Definition at line 444 of file TGo4Log.cxx.

Referenced by main(), and TGo4Analysis::ProcessCrtlCSignal().

◆ Debug()

void TGo4Log::Debug ( const char *  text,
  ... 
)
static

User shortcut for message with prio 0

Definition at line 281 of file TGo4Log.cxx.

References go4init::args.

Referenced by TGo4CompositeEvent::activateBranch(), TGo4BufferQueue::AddBuffer(), TGo4CompositeEvent::addEventElement(), TGo4Prefs::AddFile(), TGo4ClientTask::AddLocalCommand(), TGo4MbsFileParameter::AddMoreFile(), TGo4SimpleEvent::AddSubEvent(), TGo4MbsEvent::AddSubEvent(), TGo4MbsSource::BuildEvent(), TGo4MbsSource::BuildMbsEvent(), TGo4Thread::Cancel(), TGo4TaskHandlerRunnable::CheckStopBuffer(), TGo4TaskManager::ClientLogin(), TGo4AnalysisStepManager::CloseAnalysis(), TGo4TaskHandler::Connect(), TGo4TaskHandler::ConnectClientChannel(), TGo4HistogramServer::ConnectObjectClient(), TGo4ObjClient::ConnectServer(), TGo4TaskHandler::ConnectServerChannel(), TGo4AnalysisClient::Constructor(), CreateDefaultAnalysis(), TGo4EventServerFactory::CreateEventSource(), TGo4EventServerFactory::CreateEventStore(), TGo4EventServerFactory::CreateInputEvent(), TGo4TaskHandler::DisConnect(), TGo4TaskManager::DisConnectClient(), TGo4ThreadHandler::DumpThreads(), TGo4ComCloseAnalysis::ExeCom(), TGo4ComInitAnalysis::ExeCom(), TGo4ComQuit::ExeCom(), TGo4ComAutosave::ExeCom(), TGo4ComPrintConditions::ExeCom(), TGo4ComPrintDynList::ExeCom(), TGo4ComPrintHistograms::ExeCom(), TGo4ComGetAnalysisStatus::ExeCom(), TGo4ComServerQuit::ExeCom(), TGo4ComGetNamesList::ExeCom(), TGo4ComAction2::ExeCom(), TGo4ComAction1::ExeCom(), TGo4ComExecLine::ExeCom(), TGo4ComMasterQuit::ExeCom(), TGo4ComStart::ExeCom(), TGo4ComStop::ExeCom(), TGo4ComLoadAnalysisStatus::ExeCom(), TGo4ComSaveAnalysisStatus::ExeCom(), TGo4ComSetProtections::ExeCom(), TGo4ComDeleteObject::ExeCom(), TGo4ComGetObjectStatus::ExeCom(), TGo4ComGetEnvelope::ExeCom(), TGo4ComClearObject::ExeCom(), TGo4ComRemoveClient::ExeCom(), TGo4ComSetPrintEvent::ExeCom(), TGo4ComSetAnalysisStatus::ExeCom(), TGo4ComDisconnectSlave::ExeCom(), TGo4ComGetCurrentEvent::ExeCom(), TGo4ComAddTreeHistogram::ExeCom(), TGo4ComSetObject::ExeCom(), TGo4Analysis::ExecuteLine(), GetClassesList(), TGo4CompositeEvent::getEventElement(), TGo4ServerProxy::GetLaunchString(), TGo4Task::GetStatus(), TGo4RuntimeException::Handle(), TGo4DynamicListException::Handle(), TGo4EventSourceException::Handle(), TGo4EventStoreException::Handle(), TGo4ControlException::Handle(), TGo4Exception::Handle(), TGo4TaskHandlerAbortException::Handle(), TGo4TerminateException::Handle(), TGo4AnalysisStepManager::InitEventClasses(), TGo4Analysis::InitEventClasses(), TGo4ThreadManager::Initialization(), TGo4Task::Initialization(), TGo4CommandInvoker::Invoke(), TGo4Task::NextStatus(), TGo4AppControlTimer::Notify(), TGo4Socket::Open(), TGo4TreeSource::Open(), TGo4MbsSource::Open(), TGo4MbsFile::OpenFile(), TGo4Runnable::PostRun(), TGo4Runnable::PreRun(), TGo4SimpleEvent::PrintEvent(), TGo4SimpleSubEvent::PrintEvent(), TGo4DabcAccess::ProcessCommandReply(), TGo4CompositeEvent::ProvideArray(), TGo4ServerTask::Quit(), TGo4ClientTask::Quit(), TGo4MbsSubEvent::ReAllocate(), TGo4Socket::ReceiveBuffer(), TGo4ObjClient::ReceiveBuffer(), TGo4Thread::ReCreate(), TGo4Socket::Recv(), TGo4Socket::RecvRaw(), TGo4ServerTask::RemoveClient(), TGo4ServerTask::RemoveCurrentClient(), TGo4Prefs::ReplaceEnvPars(), TGo4StatusRunnable::Run(), TGo4DataRunnable::Run(), TGo4CommandRunnable::Run(), TGo4TestRunnable::Run(), TGo4Socket::Send(), TGo4AnalysisClient::SendAnalysisClientStatus(), TGo4AnalysisClient::SendAnalysisStatus(), TGo4Socket::SendBuffer(), TGo4AnalysisClient::SendNamesList(), TGo4HistogramServer::SendObject(), TGo4Task::SendObject(), TGo4ServerTask::SendStatus(), TGo4Task::SendStatus(), TGo4ServerTask::SendStatusBuffer(), TGo4Task::SendStatusBuffer(), TGo4TaskManager::ServeClient(), TGo4TaskHandler::ServerRequest(), TGo4ServerTask::SetCurrentTask(), TGo4CommandProtoList::ShowCommands(), TGo4ServerTask::Shutdown(), TGo4ExampleClient::Start(), TGo4Slave::Start(), TGo4ExampleServer::StartWorkThreads(), TGo4TaskOwner::StartWorkThreads(), TGo4ExampleClient::Stop(), TGo4Slave::Stop(), TGo4ExampleServer::StopWorkThreads(), TGo4TaskOwner::StopWorkThreads(), TGo4BackStore::Store(), TGo4EventStore::Store(), TGo4FileStore::Store(), TGo4TreeStore::Store(), TGo4ThreadManager::Terminate(), TGo4AnalysisClient::TerminateFast(), TGo4AnalysisClient::TGo4AnalysisClient(), TGo4BackStore::TGo4BackStore(), TGo4DisplayDrawerTimer::TGo4DisplayDrawerTimer(), TGo4DisplayLoggerTimer::TGo4DisplayLoggerTimer(), TGo4ExampleClient::TGo4ExampleClient(), TGo4ExampleServer::TGo4ExampleServer(), TGo4FileStore::TGo4FileStore(), TGo4MainTree::TGo4MainTree(), TGo4MbsEventServer::TGo4MbsEventServer(), TGo4MbsFile::TGo4MbsFile(), TGo4MbsRandom::TGo4MbsRandom(), TGo4MbsStream::TGo4MbsStream(), TGo4MbsTransport::TGo4MbsTransport(), TGo4RevServ::TGo4RevServ(), TGo4Socket::TGo4Socket(), TGo4StepFactory::TGo4StepFactory(), TGo4TaskHandler::TGo4TaskHandler(), TGo4TaskManager::TGo4TaskManager(), TGo4Thread::TGo4Thread(), TGo4ThreadManager::TGo4ThreadManager(), TGo4TreeStore::TGo4TreeStore(), TGo4Runnable::ThreadCatch(), TGo4Thread::Threadfunc(), TGo4Runnable::UnexpectedCatch(), TGo4TaskHandler::WaitThreadStop(), TGo4AnalysisProxy::~TGo4AnalysisProxy(), TGo4MbsSubEvent::~TGo4MbsSubEvent(), TGo4StepFactory::~TGo4StepFactory(), and TGo4Thread::~TGo4Thread().

◆ EnableRedirection()

void TGo4Log::EnableRedirection ( )
static

Definition at line 93 of file TGo4Log.cxx.

References TLogTimer::TLogTimer().

Referenced by main().

◆ Error()

void TGo4Log::Error ( const char *  text,
  ... 
)
static

User shortcut for message with prio 3

Definition at line 320 of file TGo4Log.cxx.

References go4init::args.

Referenced by TGo4CompositeEvent::activateBranch(), TGo4TaskManager::AddClient(), TGo4CompositeEvent::addEventElement(), TGo4SimpleEvent::AddSubEvent(), TGo4DabcAccess::AssignObjectTo(), TGo4HDF5Source::BuildDataSet(), TGo4HDF5Store::BuildDataSet(), TGo4HDF5Adapter::BuildDataType(), TXXXProc::BuildEvent(), TYYYUnpackProc::BuildEvent(), TXXXUnpackProc::BuildEvent(), TGo4HDF5Source::BuildEvent(), TGo4HDF5BasicDataHandle::BuildReadDataset(), TGo4SimpleEventProcessor::BuildSimpleEvent(), TGo4HDF5Source::CloseCurrentFile(), TGo4ClientTask::ConnectServer(), CreateDefaultAnalysis(), TGo4StepFactory::CreateEventProcessor(), TGo4StepFactory::CreateEventSource(), TGo4StepFactory::CreateEventStore(), TGo4StepFactory::CreateInputEvent(), TGo4StepFactory::CreateOutputEvent(), TXXXUnpackProc::CreateRawHistograms(), TGo4Analysis::ExecuteScript(), TGo4AnalysisStepException::Handle(), TGo4EventElement::Init(), main(), TGo4Analysis::MakeEllipseCond(), TGo4Analysis::MakeGraph(), TGo4Analysis::MakeListCond(), TGo4Analysis::MakeParameter(), TGo4ViewPanel::MakePictureForPad(), TGo4Analysis::MakePolyCond(), TGo4Analysis::MakeRollingGraph(), TGo4Analysis::MakeTH1(), TGo4Analysis::MakeTH2(), TGo4Analysis::MakeWinCond(), TGo4AppControlTimer::Notify(), TGo4HDF5Source::OpenFile(), TGo4HDF5Store::OpenFile(), TGo4CompositeEvent::operator[](), TGo4DabcAccess::ProcessCommandReply(), TGo4ViewPanel::ProcessPictureRedraw(), TGo4ViewPanel::ProduceSuperimposeObject(), TXXXCalibPar::ReadDatabase(), TGo4ObjClient::ReceiveObject(), TGo4ViewPanel::RedrawMultiGraph(), TGo4ObjClient::RequestNamesList(), TGo4ObjClient::RequestObject(), TGo4ViewPanel::SetPadDefaults(), TGo4HDF5Store::Store(), TGo4AnalysisClient::TGo4AnalysisClient(), TGo4BackStore::TGo4BackStore(), TGo4FileStore::TGo4FileStore(), TGo4HDF5Store::TGo4HDF5Store(), TMeshAnalysis::TMeshAnalysis(), TXXXAnalysis::TXXXAnalysis(), TXXXCalibPar::TXXXCalibPar(), TXXXStore::TXXXStore(), TYYYAnalysis::TYYYAnalysis(), TYYYEventSource::TYYYEventSource(), TMeshUnpackProc::UnpackBranch1(), TMeshUnpackProc::UnpackBranch2(), TMeshUnpackProc::UnpackBranch3(), TGo4CommandInvoker::UnRegister(), TMeshParameter::UpdateFrom(), TYYYParameter::UpdateFrom(), TXXXCalibPar::UpdateFrom(), and TGo4DabcProxy::UpdateHierarchy().

◆ GetDefaultLogname()

const char * TGo4Log::GetDefaultLogname ( )
static

Return default name of log file

Definition at line 348 of file TGo4Log.cxx.

Referenced by main(), and StopTracing().

◆ GetIgnoreLevel()

Int_t TGo4Log::GetIgnoreLevel ( )
static

◆ GetLogname()

const char * TGo4Log::GetLogname ( )
static

get name of last opened logfile

Definition at line 343 of file TGo4Log.cxx.

Referenced by TGo4LogSettings::TGo4LogSettings().

◆ GO4INCPATH()

const char * TGo4Log::GO4INCPATH ( )
static

Return include path for this Go4 installation

Definition at line 179 of file TGo4Log.cxx.

Referenced by main().

◆ GO4SYS()

const char * TGo4Log::GO4SYS ( )
static

Return GO4SYS environment variable or Go4 top directory during compile (if GO4SYS) not set. Always add trailing slash into the end of the string.

Definition at line 156 of file TGo4Log.cxx.

Referenced by TGo4Sniffer::CreateEngine(), TGo4CommandLine::enterPressedSlot(), TGo4Analysis::ExecuteLine(), TGo4ServerProxy::GetLaunchString(), and TGo4AbstractInterface::ProduceLoadLibs().

◆ Info()

void TGo4Log::Info ( const char *  text,
  ... 
)
static

User shortcut for message with prio 1

Definition at line 294 of file TGo4Log.cxx.

References go4init::args.

Referenced by TGo4TaskManager::AddClient(), TXXXProc::BuildEvent(), TGo4FileSource::BuildEvent(), TGo4EventSource::Clear(), TGo4EventStore::Clear(), TGo4EventProcessor::Clear(), TYYYEventSource::Close(), TGo4HDF5Source::CloseCurrentFile(), TGo4FileSource::CloseCurrentFile(), TGo4ClientTask::ConnectServer(), CreateDefaultAnalysis(), TGo4StepFactory::CreateEventProcessor(), TGo4StepFactory::CreateEventSource(), TGo4StepFactory::CreateEventStore(), TGo4StepFactory::CreateInputEvent(), TGo4StepFactory::CreateOutputEvent(), TXXXUnpackProc::CreateRawHistograms(), TGo4TaskManager::DisConnectClient(), TGo4ComQuit::ExeCom(), TGo4Analysis::ExecuteScript(), TGo4FitPanel::Fitter_PrintParameters(), TMeshB12OutputEvent::Init(), TMeshB1OutputEvent::Init(), TMeshB2OutputEvent::Init(), TMeshB3OutputEvent::Init(), TMeshB3InputEvent::Init(), TMeshB2InputEvent::Init(), TMeshFinalEvent::Init(), TMeshB1InputEvent::Init(), TMeshRawEvent::Init(), TGo4EventElement::Init(), TGo4Analysis::InitEventClasses(), TGo4Analysis::LoadObjects(), main(), TGo4Analysis::MakeParameter(), TGo4Analysis::MakeTH1(), TGo4Analysis::MakeTH2(), TGo4MbsFile::NextEvent(), TGo4MbsSource::NextEvent(), TYYYEventSource::Open(), TGo4MbsFile::Open(), TGo4HDF5Source::OpenFile(), TGo4HDF5Store::OpenFile(), TGo4EventElement::PrintEvent(), TYYYRawEvent::ReAllocate(), TGo4AnalysisObjectManager::SetParameter(), TXXXStore::Store(), TGo4FileStore::TGo4FileStore(), TGo4MainTree::TGo4MainTree(), TGo4TestThreadManager::TGo4TestThreadManager(), TGo4TreeStore::TGo4TreeStore(), TMeshAnalysis::TMeshAnalysis(), TMeshB12AnlProc::TMeshB12AnlProc(), TMeshB1AnlProc::TMeshB1AnlProc(), TMeshB2AnlProc::TMeshB2AnlProc(), TMeshB3AnlProc::TMeshB3AnlProc(), TMeshFinalProc::TMeshFinalProc(), TMeshProviderProc::TMeshProviderProc(), TMeshUnpackProc::TMeshUnpackProc(), TXXXAnalysis::TXXXAnalysis(), TXXXAnlProc::TXXXAnlProc(), TXXXEvent::TXXXEvent(), TXXXProc::TXXXProc(), TXXXStore::TXXXStore(), TXXXUnpackProc::TXXXUnpackProc(), TYYYAnalysis::TYYYAnalysis(), TYYYUnpackProc::TYYYUnpackProc(), TYYYParameter::UpdateFrom(), TGo4EventCalibration::UpdateFrom(), TGo4Parameter::UpdateFromUrl(), TXXXAnalysis::UserEventFunc(), TMeshAnalysis::UserEventFunc(), TXXXAnalysis::UserPostLoop(), TMeshAnalysis::UserPostLoop(), TYYYAnalysis::UserPostLoop(), TXXXAnalysis::UserPreLoop(), TMeshAnalysis::UserPreLoop(), TYYYAnalysis::UserPreLoop(), TGo4HDF5Store::WriteToStore(), TGo4Display::~TGo4Display(), TMeshAnalysis::~TMeshAnalysis(), TXXXAnalysis::~TXXXAnalysis(), TXXXAnlProc::~TXXXAnlProc(), TXXXEvent::~TXXXEvent(), TXXXProc::~TXXXProc(), TXXXUnpackProc::~TXXXUnpackProc(), and TYYYAnalysis::~TYYYAnalysis().

◆ Instance()

TGo4Log * TGo4Log::Instance ( )
static

Definition at line 85 of file TGo4Log.cxx.

Referenced by main(), StartTracing(), and StopTracing().

◆ IsAutoEnabled()

Bool_t TGo4Log::IsAutoEnabled ( )
static

◆ IsLogfileEnabled()

Bool_t TGo4Log::IsLogfileEnabled ( )
static

get current logfile state

Definition at line 368 of file TGo4Log.cxx.

Referenced by TGo4LogSettings::TGo4LogSettings().

◆ IsOutputEnabled()

Bool_t TGo4Log::IsOutputEnabled ( )
static

get current output state

Definition at line 358 of file TGo4Log.cxx.

Referenced by TGo4Analysis::SendMessageToGUI(), TGo4Task::SendStatusMessage(), and TGo4LogSettings::TGo4LogSettings().

◆ LogfileEnable()

void TGo4Log::LogfileEnable ( Bool_t  on = kTRUE)
static

switch writing to logfile on or off

Definition at line 363 of file TGo4Log.cxx.

Referenced by TGo4MainWindow::LogSettingsSlot(), and main().

◆ Message()

const char * TGo4Log::Message ( Int_t  prio,
const char *  text,
  ... 
)
static

◆ OpenLogfile()

void TGo4Log::OpenLogfile ( const char *  name = nullptr,
const char *  headercomment = nullptr,
Bool_t  appendmode = kFALSE 
)
static

Open file of name for logmessage output. If name == nullptr, use defaultname containing pid. Optionally, headercomment text is set at beginning of file. If appendmode is true, existing file of same name is reused and extended by new messages.

Definition at line 383 of file TGo4Log.cxx.

Referenced by TGo4MainWindow::LogSettingsSlot(), and main().

◆ OutputEnable()

void TGo4Log::OutputEnable ( Bool_t  on = kTRUE)
static

switch output on or off

Definition at line 353 of file TGo4Log.cxx.

Referenced by TGo4MainWindow::LogSettingsSlot(), TGo4Analysis::SendMessageToGUI(), and TGo4Task::SendStatusMessage().

◆ Printf()

void TGo4Log::Printf ( Bool_t  _stdout,
const char *  text 
)
static

Make direct printf without log file or logger

Definition at line 254 of file TGo4Log.cxx.

◆ PrintRate()

void TGo4Log::PrintRate ( ULong64_t  cnt,
double  rate 
)
static

Printout rate and events count, handle redirection

Definition at line 270 of file TGo4Log.cxx.

Referenced by TGo4Analysis::RunImplicitLoop(), and TGo4AnalysisClient::UpdateRate().

◆ ProcessRedirection()

void TGo4Log::ProcessRedirection ( int  kind = 0)
staticprivate

Definition at line 118 of file TGo4Log.cxx.

Referenced by TLogTimer::Notify().

◆ set_trace_level()

static void TGo4Log::set_trace_level ( int  )
inlinestatic

dummy for compatibility

Definition at line 136 of file TGo4Log.h.

◆ SetIgnoreLevel()

void TGo4Log::SetIgnoreLevel ( Int_t  level)
static

Define threshold for output

Definition at line 332 of file TGo4Log.cxx.

Referenced by TGo4MainWindow::LogSettingsSlot(), main(), StartTracing(), and StopTracing().

◆ SetSniffer()

void TGo4Log::SetSniffer ( TNamed *  sniff)
static

Definition at line 151 of file TGo4Log.cxx.

Referenced by TGo4Sniffer::TGo4Sniffer(), and TGo4Sniffer::~TGo4Sniffer().

◆ SetTracePriority()

static void TGo4Log::SetTracePriority ( int  )
inlinestatic

dummy for compatibility

Definition at line 139 of file TGo4Log.h.

◆ StartTracing()

static void TGo4Log::StartTracing ( )
inlinestatic

For backward compatibility

Definition at line 142 of file TGo4Log.h.

References Instance(), and SetIgnoreLevel().

◆ StopTracing()

static void TGo4Log::StopTracing ( )
inlinestatic

For backward compatibility

Definition at line 145 of file TGo4Log.h.

References GetDefaultLogname(), Instance(), and SetIgnoreLevel().

◆ subGO4SYS()

TString TGo4Log::subGO4SYS ( const char *  subdir)
static

◆ Warn()

void TGo4Log::Warn ( const char *  text,
  ... 
)
static

◆ WriteLogfile()

void TGo4Log::WriteLogfile ( const char *  text,
Bool_t  withtime = kTRUE 
)
static

Write text to current logfile if this is open. Prefix current datime in each line if "withtime" is true

Definition at line 420 of file TGo4Log.cxx.

Referenced by main().

Friends And Related Function Documentation

◆ TLogTimer

friend class TLogTimer
friend

Definition at line 182 of file TGo4Log.h.

Member Data Documentation

◆ fgbAutoMode

Bool_t TGo4Log::fgbAutoMode = kFALSE
staticprivate

User boolean to write log on demand or not

Definition at line 203 of file TGo4Log.h.

◆ fgbLogfileEnabled

Bool_t TGo4Log::fgbLogfileEnabled = kFALSE
staticprivate

General switch on/off log file output

Definition at line 200 of file TGo4Log.h.

◆ fgbOutputEnabled

Bool_t TGo4Log::fgbOutputEnabled = kTRUE
staticprivate

General switch on/off log output

Definition at line 197 of file TGo4Log.h.

◆ fgcDEBUG

const char * TGo4Log::fgcDEBUG = "d"
static

System debug message indicator

Definition at line 157 of file TGo4Log.h.

◆ fgcDEFAULTLOG

const char * TGo4Log::fgcDEFAULTLOG = "go4logfile.txt"
static

Name of default logfile

Definition at line 169 of file TGo4Log.h.

◆ fgcERR

const char * TGo4Log::fgcERR = "!"
static

Error message indicator

Definition at line 166 of file TGo4Log.h.

◆ fgcINFO

const char * TGo4Log::fgcINFO = "*"
static

Info message indicator

Definition at line 160 of file TGo4Log.h.

◆ fgcLEFT

const char * TGo4Log::fgcLEFT = "GO4-"
static

Prompt character left side

Definition at line 151 of file TGo4Log.h.

◆ fgcMessagetext

char TGo4Log::fgcMessagetext
staticprivate

Keeps latest message with all format indicators

Definition at line 206 of file TGo4Log.h.

◆ fgcRIGHT

const char * TGo4Log::fgcRIGHT = " "
static

Prompt character right side

Definition at line 154 of file TGo4Log.h.

◆ fgcWARN

const char * TGo4Log::fgcWARN = "#"
static

Warning message indicator

Definition at line 163 of file TGo4Log.h.

◆ fgiIgnoreLevel

Int_t TGo4Log::fgiIgnoreLevel = 1
staticprivate

all Messages with lower level are suppressed

Definition at line 194 of file TGo4Log.h.

◆ fgsGO4SYS

TString TGo4Log::fgsGO4SYS = ""
staticprivate

Definition at line 214 of file TGo4Log.h.

◆ fgSniffer

TNamed * TGo4Log::fgSniffer = nullptr
staticprivate

value of GO4SYS during run

Definition at line 216 of file TGo4Log.h.

◆ fgStdPipe

int TGo4Log::fgStdPipe = {-1, -1}
staticprivate

optional object to get all output via SetTitle method

Definition at line 218 of file TGo4Log.h.

◆ fgStdSave

int TGo4Log::fgStdSave = -1
staticprivate

redirected pipe for stdout

Definition at line 219 of file TGo4Log.h.

◆ fgTimer

TLogTimer * TGo4Log::fgTimer = nullptr
staticprivate

saved file for stdout

Definition at line 221 of file TGo4Log.h.

Referenced by TLogTimer::Notify().

◆ fgxInstance

TGo4Log * TGo4Log::fgxInstance = nullptr
staticprivate

Definition at line 188 of file TGo4Log.h.

◆ fgxLogfile

void * TGo4Log::fgxLogfile = nullptr
staticprivate

optional logfile to store messages with time

Definition at line 209 of file TGo4Log.h.

◆ fgxLogName

TString TGo4Log::fgxLogName = TGo4Log::fgcDEFAULTLOG
staticprivate

Name of last logfile set

Definition at line 212 of file TGo4Log.h.

◆ fgxMutex

TMutex * TGo4Log::fgxMutex = nullptr
staticprivate

we use own mutex to protect the logging instance

Definition at line 191 of file TGo4Log.h.


The documentation for this class was generated from the following files: