EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairLogger.h File Reference
#include "Rtypes.h"
#include <ostream>
#include <fstream>
#include <iomanip>
+ Include dependency graph for FairLogger.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FairLogger
 

Macros

#define IMP_CONVERTTOSTRING(s)   # s
 
#define CONVERTTOSTRING(s)   IMP_CONVERTTOSTRING(s)
 
#define MESSAGE_ORIGIN   __FILE__, CONVERTTOSTRING(__LINE__), __FUNCTION__
 
#define FAIRLOG(level)   !(gLogger->IsLogNeeded(level)) ? gLogger->GetNullStream(level) : gLogger->GetOutputStream(level, MESSAGE_ORIGIN)
 
#define FAIRLOG_IF(level, condition)   !(condition) ? gLogger->GetNullStream(level) : LOG(level)
 

Enumerations

enum  FairLogLevel {
  FATAL, ERROR, WARNING, INFO,
  DEBUG, DEBUG1, DEBUG2, DEBUG3,
  DEBUG4
}
 
enum  FairLogColor {
  Fair_Color_Normal = 0, Fair_Color_ForegroundBlack = 0x1, Fair_Color_ForegroundRed = 0x2, Fair_Color_ForegroundGreen = 0x3,
  Fair_Color_ForegroundYellow = 0x4, Fair_Color_ForegroundBlue = 0x5, Fair_Color_ForegroundMagenta = 0x6, Fair_Color_ForegroundCyan = 0x7,
  Fair_Color_ForegroundWhite = 0x8, Fair_Color_ForegroundMask = 0xF
}
 
enum  FairLogVerbosityLevel { verbosityHIGH, verbosityMEDIUM, verbosityLOW }
 

Variables

static const char *const LogLevelString []
 
static const char *const LogLevelColor []
 
static const char *const LogVerbosityString [] = { "HIGH", "MEDIUM", "LOW" }
 
FairLoggergLogger
 

Macro Definition Documentation

#define CONVERTTOSTRING (   s)    IMP_CONVERTTOSTRING(s)

Definition at line 13 of file FairLogger.h.

View newest version in sPHENIX GitHub at line 13 of file FairLogger.h

#define FAIRLOG (   level)    !(gLogger->IsLogNeeded(level)) ? gLogger->GetNullStream(level) : gLogger->GetOutputStream(level, MESSAGE_ORIGIN)

Definition at line 16 of file FairLogger.h.

View newest version in sPHENIX GitHub at line 16 of file FairLogger.h

Referenced by FairLogger::ConvertToLogLevel(), and FairLogger::ConvertToLogVerbosityLevel().

#define FAIRLOG_IF (   level,
  condition 
)    !(condition) ? gLogger->GetNullStream(level) : LOG(level)

Definition at line 19 of file FairLogger.h.

View newest version in sPHENIX GitHub at line 19 of file FairLogger.h

#define IMP_CONVERTTOSTRING (   s)    # s

Definition at line 12 of file FairLogger.h.

View newest version in sPHENIX GitHub at line 12 of file FairLogger.h

#define MESSAGE_ORIGIN   __FILE__, CONVERTTOSTRING(__LINE__), __FUNCTION__

Definition at line 14 of file FairLogger.h.

View newest version in sPHENIX GitHub at line 14 of file FairLogger.h

Referenced by EicStlFactory::_ConstructGeometry(), FairRootManager::ActivateBranch(), FairRootManager::ActivateBranchInInTree(), FairRootManager::AddBackgroundFile(), FairRunAna::AddBackgroundFile(), EicMagneticFieldFromGradients::AddBeamLineElementGrads(), EicMagneticField::AddBeamLineElementGrads(), EicMagneticField::AddBeamLineElementMaps(), FairRuntimeDb::addContFactory(), FairRootManager::AddFile(), FairRunAna::AddFriend(), FairRootManager::AddFriendsToChain(), FairMCApplication::AddIons(), FairModule::AddSensitiveVolume(), FairRunAna::AddSignalFile(), EicTrackingDigiHitProducer::AssignDigiHitClassName(), FairModule::AssignMediumAtImport(), FairRootManager::BGWindowWidthNo(), FairRootManager::BGWindowWidthTime(), FairRunSim::CheckFlukaExec(), FairRootManager::CheckFriendChains(), FairModule::CheckIfSensitive(), FairRootManager::CheckMaxEventNo(), FairModule::ConstructASCIIGeometry(), CbmModule::ConstructGDMLGeometry(), EicFieldGradDetector::ConstructGeometry(), EicFieldMapDetector::ConstructGeometry(), FairModule::ConstructGeometry(), EicCadFile::ConstructGeometry(), EicDetector::ConstructGeometry(), FairModule::ConstructOpGeometry(), FairModule::ConstructRootGeometry(), EicStlFactory::DumpTmpStlFile(), EicMagneticField::EicMagneticField(), EicMagneticFieldFromGradients::EicMagneticFieldFromGradients(), EicMagneticFieldGrad::EicMagneticFieldGrad(), EicMagneticFieldMap::EicMagneticFieldMap(), EicStlFactory::EicStlFactory(), EicHtcTask::Exec(), FairModule::ExpandNode(), FairIon::FairIon(), FairParamList::fill(), FairParamList::fillObject(), PndStack::FillTrackArray(), FairRootManager::ForceFill(), FairPrimaryGenerator::GenerateEvent(), PndStack::GetCurrentTrack(), FairRootManager::GetEmptyTClonesArray(), FairRootManager::GetEventTime(), FairRootManager::GetGeoParameter(), FairRootManager::GetObject(), FairRootManager::GetObjectFromInTree(), PndStack::GetParticle(), FairRootManager::GetSignalChainNo(), FairRootManager::GetTClonesArray(), EicRunDigi::ImportRealHits(), FairParSet::init(), FairRunAna::Init(), PndFieldMap::Init(), EicMediaHub::Init(), FairRunSim::Init(), FairMCApplication::InitGeometry(), EicMagneticFieldMap::Initialize(), EicMagneticFieldFromGradients::InitializeFieldGradients(), EicMagneticField::InitializeFieldMaps(), FairMCApplication::InitMC(), FairTask::InitTask(), FairMCApplication::InitTasks(), FairRootManager::OpenInChain(), FairRootManager::OpenInTree(), FairRootManager::OpenOutFile(), FairRootManager::OpenSignalChain(), PndFieldMap::PndFieldMap(), PndStack::PopPrimaryForTracking(), FairTrackPar::Print(), PndStack::Print(), FairRootManager::PrintFriendList(), FairRunInfo::PrintInfo(), EicDetector::ProcessHits(), FairRootManager::ReadBKEvent(), FairRootManager::ReadEvent(), FairRootManager::ReadMixedEvent(), PndFieldMap::ReadRootFile(), FairRootManager::Register(), FairRootManager::RegisterWriteoutBuffer(), FairTask::ReInitTask(), FairParamList::replace(), FairRunAna::RunMixed(), FairRunAna::RunOnLmdFiles(), FairRunAna::RunWithTimeStamps(), FairDetector::SaveGeoParams(), FairRunAna::SetBackgroundFile(), FairRootManager::SetBackgroundFile(), FairRunAna::SetContainerStatic(), FairRootManager::SetEventTime(), PndFieldMap::SetField(), PndStack::SetGeneratorFlags(), FairModule::SetGeometryFileName(), FairRunAna::SetGeomFile(), FairRunSim::SetGeoModel(), FairRunSim::SetMaterials(), FairRunSim::SetMCConfig(), FairRunAna::SetSignalFile(), FairRootManager::SetSignalFile(), FairMCApplication::StopRun(), PndStack::UpdateTrackIndex(), FairParSet::write(), FairRootManager::Write(), PndFieldMap::WriteAsciiFile(), FairRuntimeDb::writeContainer(), FairRunInfo::WriteHistosToFile(), FairRootManager::~FairRootManager(), FairRun::~FairRun(), and FairRunSim::~FairRunSim().

Enumeration Type Documentation

Enumerator:
Fair_Color_Normal 
Fair_Color_ForegroundBlack 
Fair_Color_ForegroundRed 
Fair_Color_ForegroundGreen 
Fair_Color_ForegroundYellow 
Fair_Color_ForegroundBlue 
Fair_Color_ForegroundMagenta 
Fair_Color_ForegroundCyan 
Fair_Color_ForegroundWhite 
Fair_Color_ForegroundMask 

Definition at line 38 of file FairLogger.h.

View newest version in sPHENIX GitHub at line 38 of file FairLogger.h

Enumerator:
FATAL 
ERROR 
WARNING 
INFO 
DEBUG 
DEBUG1 
DEBUG2 
DEBUG3 
DEBUG4 

Definition at line 30 of file FairLogger.h.

View newest version in sPHENIX GitHub at line 30 of file FairLogger.h

Enumerator:
verbosityHIGH 
verbosityMEDIUM 
verbosityLOW 

Definition at line 68 of file FairLogger.h.

View newest version in sPHENIX GitHub at line 68 of file FairLogger.h

Variable Documentation

const char* const LogLevelColor[]
static
Initial value:
= { "\33[01;31m", "\33[01;33m",
"\33[00;33m", "\33[01;33m",
"\33[01;32m", "\33[01;32m",
"\33[01;32m", "\33[01;32m",
"\33[01;32m"
}

Definition at line 55 of file FairLogger.h.

View newest version in sPHENIX GitHub at line 55 of file FairLogger.h

Referenced by FairLogger::GetOutputStream(), and FairLogger::LogFatalMessage().

const char* const LogLevelString[]
static
Initial value:
= { "FATAL", "ERROR", "WARNING",
"INFO", "DEBUG", "DEBUG1",
"DEBUG2", "DEBUG3", "DEBUG4"
}

Definition at line 34 of file FairLogger.h.

View newest version in sPHENIX GitHub at line 34 of file FairLogger.h

Referenced by FairLogger::ConvertLogLevelToString(), FairLogger::GetOutputStream(), and FairLogger::LogFatalMessage().

const char* const LogVerbosityString[] = { "HIGH", "MEDIUM", "LOW" }
static

Definition at line 69 of file FairLogger.h.

View newest version in sPHENIX GitHub at line 69 of file FairLogger.h