GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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=0, const char *headercomment=0, Bool_t appendmode=kFALSE)
 
static void CloseLogfile ()
 
static const char * GetLogname ()
 
static const char * Message (Int_t prio, const char *text,...)
 
static void Debug (const char *text,...)
 
static void Info (const char *text,...)
 
static void Warn (const char *text,...)
 
static void Error (const char *text,...)
 
static void Printf (Bool_t _stdout, const char *text)
 
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 const char * GetPrintfArg (Int_t type_id)
 
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 = 0
 
static TMutex * fgxMutex = 0
 
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 = 0
 
static TString fgxLogName = TGo4Log::fgcDEFAULTLOG
 
static TString fgsGO4SYS = ""
 
static TNamed * fgSniffer = 0
 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 = 0
 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 53 of file TGo4Log.h.

Member Enumeration Documentation

anonymous enum

Maximum message length allowed

Enumerator
fguMESLEN 

Definition at line 178 of file TGo4Log.h.

Constructor & Destructor Documentation

TGo4Log::~TGo4Log ( )
virtual

Definition at line 82 of file TGo4Log.cxx.

References CloseLogfile().

TGo4Log::TGo4Log ( )
private

Definition at line 69 of file TGo4Log.cxx.

References fgcDEFAULTLOG, fgxMutex, IsLogfileEnabled(), LogfileEnable(), and OpenLogfile().

Referenced by Instance().

Member Function Documentation

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

set boolean for user action

Definition at line 380 of file TGo4Log.cxx.

References fgbAutoMode.

Referenced by TGo4MainWindow::LogSettingsSlot().

void TGo4Log::CloseLogfile ( )
static

Close logfile if existing

Definition at line 449 of file TGo4Log.cxx.

References fgxLogfile.

Referenced by main(), OpenLogfile(), TGo4Analysis::ProcessCrtlCSignal(), and ~TGo4Log().

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

User shortcut for message with prio 0

Definition at line 270 of file TGo4Log.cxx.

References fgiIgnoreLevel, fguMESLEN, Instance(), and Message().

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(), TGo4ComAction2::ExeCom(), TGo4ComQuit::ExeCom(), TGo4ComAutosave::ExeCom(), TGo4ComPrintConditions::ExeCom(), TGo4ComPrintHistograms::ExeCom(), TGo4ComPrintDynList::ExeCom(), TGo4ComAction1::ExeCom(), TGo4ComGetAnalysisStatus::ExeCom(), TGo4ComServerQuit::ExeCom(), TGo4ComGetNamesList::ExeCom(), TGo4ComExecLine::ExeCom(), TGo4ComMasterQuit::ExeCom(), TGo4ComStart::ExeCom(), TGo4ComStop::ExeCom(), TGo4ComLoadAnalysisStatus::ExeCom(), TGo4ComSaveAnalysisStatus::ExeCom(), TGo4ComDeleteObject::ExeCom(), TGo4ComGetObjectStatus::ExeCom(), TGo4ComSetProtections::ExeCom(), TGo4ComGetEnvelope::ExeCom(), TGo4ComClearObject::ExeCom(), TGo4ComSetAnalysisStatus::ExeCom(), TGo4ComRemoveClient::ExeCom(), TGo4ComSetPrintEvent::ExeCom(), TGo4ComDisconnectSlave::ExeCom(), TGo4ComGetCurrentEvent::ExeCom(), TGo4ComAddTreeHistogram::ExeCom(), TGo4ComSetObject::ExeCom(), TGo4Analysis::ExecuteLine(), GetClassesList(), TGo4CompositeEvent::getEventElement(), TGo4ServerProxy::GetLaunchString(), TGo4Task::GetStatus(), TGo4RuntimeException::Handle(), TGo4DynamicListException::Handle(), TGo4EventSourceException::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().

void TGo4Log::EnableRedirection ( )
static

Definition at line 95 of file TGo4Log.cxx.

References fgStdPipe, fgStdSave, fgTimer, and TLogTimer.

Referenced by main().

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

User shortcut for message with prio 3

Definition at line 309 of file TGo4Log.cxx.

References fguMESLEN, Instance(), and Message().

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

const char * TGo4Log::GetDefaultLogname ( )
static

Return default name of log file

Definition at line 338 of file TGo4Log.cxx.

References fgcDEFAULTLOG.

Referenced by main().

Int_t TGo4Log::GetIgnoreLevel ( )
static
const char * TGo4Log::GetLogname ( )
static

get name of last opened logfile

Definition at line 333 of file TGo4Log.cxx.

References fgxLogName.

Referenced by TGo4LogSettings::TGo4LogSettings().

const char * TGo4Log::GetPrintfArg ( Int_t  type_id)
static

Return printf specifier for basic types like UInt64_t or Int_t. As argument, ROOT constants should be provided - kInt_t, kUInt64_t and so on

Definition at line 343 of file TGo4Log.cxx.

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

const char * TGo4Log::GO4INCPATH ( )
static

Return include path for this Go4 installation

Definition at line 181 of file TGo4Log.cxx.

Referenced by main().

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 158 of file TGo4Log.cxx.

References fgsGO4SYS.

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

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

User shortcut for message with prio 1

Definition at line 283 of file TGo4Log.cxx.

References fgiIgnoreLevel, fguMESLEN, Instance(), and Message().

Referenced by TGo4EventElement::activate(), TGo4TaskManager::AddClient(), TXXXProc::BuildEvent(), TGo4FileSource::BuildEvent(), TGo4EventSource::Clear(), TGo4EventStore::Clear(), TGo4EventProcessor::Clear(), TYYYEventSource::Close(), TGo4FileSource::CloseCurrentFile(), CreateDefaultAnalysis(), TGo4StepFactory::CreateEventProcessor(), TGo4StepFactory::CreateEventSource(), TGo4StepFactory::CreateInputEvent(), TGo4StepFactory::CreateOutputEvent(), TGo4EventElement::deactivate(), 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(), TGo4EventElement::PrintEvent(), TYYYRawEvent::ReAllocate(), TGo4AnalysisObjectManager::SetParameter(), 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(), 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(), TGo4Display::~TGo4Display(), TMeshAnalysis::~TMeshAnalysis(), TXXXAnalysis::~TXXXAnalysis(), TXXXAnlProc::~TXXXAnlProc(), TXXXEvent::~TXXXEvent(), TXXXProc::~TXXXProc(), TXXXUnpackProc::~TXXXUnpackProc(), and TYYYAnalysis::~TYYYAnalysis().

TGo4Log * TGo4Log::Instance ( )
static

Definition at line 87 of file TGo4Log.cxx.

References fgxInstance, and TGo4Log().

Referenced by Debug(), Error(), Info(), main(), Message(), StartTracing(), StopTracing(), and Warn().

Bool_t TGo4Log::IsAutoEnabled ( )
static
Bool_t TGo4Log::IsLogfileEnabled ( )
static

get current logfile state

Definition at line 375 of file TGo4Log.cxx.

References fgbLogfileEnabled.

Referenced by TGo4Log(), and TGo4LogSettings::TGo4LogSettings().

Bool_t TGo4Log::IsOutputEnabled ( )
static

get current output state

Definition at line 364 of file TGo4Log.cxx.

References fgbOutputEnabled.

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

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

switch writing to logfile on or off

Definition at line 369 of file TGo4Log.cxx.

References fgbLogfileEnabled.

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

const char * TGo4Log::Message ( Int_t  prio,
const char *  text,
  ... 
)
static
void TGo4Log::OpenLogfile ( const char *  name = 0,
const char *  headercomment = 0,
Bool_t  appendmode = kFALSE 
)
static

Open file of name for logmessage output. If name=0, 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 391 of file TGo4Log.cxx.

References CloseLogfile(), fguMESLEN, fgxLogfile, fgxLogName, LogfileEnable(), and WriteLogfile().

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

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

switch output on or off

Definition at line 358 of file TGo4Log.cxx.

References fgbOutputEnabled.

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

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

Make direct printf without log file or logger

Definition at line 255 of file TGo4Log.cxx.

References ProcessRedirection().

Referenced by TGo4Analysis::RunImplicitLoop().

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

Definition at line 120 of file TGo4Log.cxx.

References fgSniffer, fgStdPipe, and fgStdSave.

Referenced by Message(), TLogTimer::Notify(), and Printf().

static void TGo4Log::set_trace_level ( int  )
inlinestatic

dummy for compatibility

Definition at line 138 of file TGo4Log.h.

void TGo4Log::SetIgnoreLevel ( Int_t  level)
static

Define threshold for output

Definition at line 322 of file TGo4Log.cxx.

References fgiIgnoreLevel.

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

void TGo4Log::SetSniffer ( TNamed *  sniff)
static

Definition at line 153 of file TGo4Log.cxx.

References fgSniffer.

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

static void TGo4Log::SetTracePriority ( int  )
inlinestatic

dummy for compatibility

Definition at line 141 of file TGo4Log.h.

static void TGo4Log::StartTracing ( )
inlinestatic

For backward compatibility

Definition at line 144 of file TGo4Log.h.

References Instance(), and SetIgnoreLevel().

static void TGo4Log::StopTracing ( )
inlinestatic

For backward compatibility

Definition at line 147 of file TGo4Log.h.

References Instance(), and SetIgnoreLevel().

TString TGo4Log::subGO4SYS ( const char *  subdir)
static
void TGo4Log::Warn ( const char *  text,
  ... 
)
static
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 428 of file TGo4Log.cxx.

References fgbLogfileEnabled, and fgxLogfile.

Referenced by main(), Message(), and OpenLogfile().

Friends And Related Function Documentation

friend class TLogTimer
friend

Definition at line 188 of file TGo4Log.h.

Referenced by EnableRedirection().

Member Data Documentation

Bool_t TGo4Log::fgbAutoMode = kFALSE
staticprivate

User boolean to write log on demand or not

Definition at line 209 of file TGo4Log.h.

Referenced by AutoEnable(), and IsAutoEnabled().

Bool_t TGo4Log::fgbLogfileEnabled = kFALSE
staticprivate

General switch on/off log file output

Definition at line 206 of file TGo4Log.h.

Referenced by IsLogfileEnabled(), LogfileEnable(), Message(), and WriteLogfile().

Bool_t TGo4Log::fgbOutputEnabled = kTRUE
staticprivate

General switch on/off log output

Definition at line 203 of file TGo4Log.h.

Referenced by IsOutputEnabled(), Message(), and OutputEnable().

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

System debug message indicator

Definition at line 163 of file TGo4Log.h.

Referenced by Message().

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

Name of default logfile

Definition at line 175 of file TGo4Log.h.

Referenced by GetDefaultLogname(), and TGo4Log().

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

Error message indicator

Definition at line 172 of file TGo4Log.h.

Referenced by Message().

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

Info message indicator

Definition at line 166 of file TGo4Log.h.

Referenced by Message().

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

Prompt character left side

Definition at line 157 of file TGo4Log.h.

Referenced by Message().

char TGo4Log::fgcMessagetext
staticprivate

Keeps latest message with all format indicators

Definition at line 212 of file TGo4Log.h.

Referenced by Message().

const char * TGo4Log::fgcRIGHT = " "
static

Prompt character right side

Definition at line 160 of file TGo4Log.h.

Referenced by Message().

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

Warning message indicator

Definition at line 169 of file TGo4Log.h.

Referenced by Message().

Int_t TGo4Log::fgiIgnoreLevel = 1
staticprivate

all Messages with lower level are suppressed

Definition at line 200 of file TGo4Log.h.

Referenced by Debug(), GetIgnoreLevel(), Info(), Message(), SetIgnoreLevel(), and Warn().

TString TGo4Log::fgsGO4SYS = ""
staticprivate

Definition at line 220 of file TGo4Log.h.

Referenced by GO4SYS().

TNamed * TGo4Log::fgSniffer = 0
staticprivate

value of GO4SYS during run

Definition at line 222 of file TGo4Log.h.

Referenced by Message(), ProcessRedirection(), and SetSniffer().

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

optional object to get all output via SetTitle method

Definition at line 224 of file TGo4Log.h.

Referenced by EnableRedirection(), and ProcessRedirection().

int TGo4Log::fgStdSave = -1
staticprivate

redirected pipe for stdout

Definition at line 225 of file TGo4Log.h.

Referenced by EnableRedirection(), and ProcessRedirection().

TLogTimer * TGo4Log::fgTimer = 0
staticprivate

saved file for stdout

Definition at line 227 of file TGo4Log.h.

Referenced by EnableRedirection().

TGo4Log * TGo4Log::fgxInstance = 0
staticprivate

Definition at line 194 of file TGo4Log.h.

Referenced by Instance().

void * TGo4Log::fgxLogfile = 0
staticprivate

optional logfile to store messages with time

Definition at line 215 of file TGo4Log.h.

Referenced by CloseLogfile(), OpenLogfile(), and WriteLogfile().

TString TGo4Log::fgxLogName = TGo4Log::fgcDEFAULTLOG
staticprivate

Name of last logfile set

Definition at line 218 of file TGo4Log.h.

Referenced by GetLogname(), and OpenLogfile().

TMutex * TGo4Log::fgxMutex = 0
staticprivate

we use own mutex to protect the logging instance

Definition at line 197 of file TGo4Log.h.

Referenced by TGo4Log().


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