![]() |
AliRoot Core
ee782a0 (ee782a0)
|
#include <AliLog.h>
Public Types | |
enum | EType_t { kFatal = 0, kError, kWarning, kInfo, kDebug, kMaxType } |
typedef void(* | AliLogNotification) (EType_t type, const char *message) |
Static Public Member Functions | |
static AliLog * | GetRootLogger () |
static void | DeleteRootLogger () |
static void | EnableCoreDump (Bool_t enabled) |
static void | MakeCoreDump (const char *fout) |
static void | EnableDebug (Bool_t enabled) |
static void | SetGlobalLogLevel (EType_t type) |
static Int_t | GetGlobalLogLevel () |
static void | SetGlobalDebugLevel (Int_t level) |
static Int_t | GetGlobalDebugLevel () |
static void | SetModuleDebugLevel (const char *module, Int_t level) |
static void | ClearModuleDebugLevel (const char *module) |
static void | SetClassDebugLevel (const char *className, Int_t level) |
static void | ClearClassDebugLevel (const char *className) |
static void | SetStandardOutput () |
static void | SetStandardOutput (EType_t type) |
static void | SetErrorOutput () |
static void | SetErrorOutput (EType_t type) |
static void | SetFileOutput (const char *fileName) |
static void | SetFileOutput (EType_t type, const char *fileName) |
static void | SetStreamOutput (ostream *stream) |
static void | SetStreamOutput (EType_t type, ostream *stream) |
static void | SetLogNotification (AliLogNotification pCallBack) |
static void | SetLogNotification (EType_t type, AliLogNotification pCallBack) |
static void | Flush () |
static void | SetHandleRootMessages (Bool_t on) |
static void | SetPrintType (Bool_t on) |
static void | SetPrintType (EType_t type, Bool_t on) |
static void | SetPrintModule (Bool_t on) |
static void | SetPrintModule (EType_t type, Bool_t on) |
static void | SetPrintScope (Bool_t on) |
static void | SetPrintScope (EType_t type, Bool_t on) |
static void | SetPrintLocation (Bool_t on) |
static void | SetPrintLocation (EType_t type, Bool_t on) |
static void | SetPrintRepetitions (Bool_t on) |
static void | WriteToFile (const char *name, Int_t option=0) |
static Bool_t | IsDebugEnabled () |
static Int_t | GetDebugLevel (const char *module, const char *className) |
static void | Message (UInt_t level, const char *message, const char *module, const char *className, const char *function, const char *file, Int_t line) |
static void | Debug (UInt_t level, const char *message, const char *module, const char *className, const char *function, const char *file, Int_t line) |
static Int_t | RedirectStdoutTo (EType_t type, UInt_t level, const char *module, const char *className, const char *function, const char *file, Int_t line, Bool_t print) |
static Int_t | RedirectStderrTo (EType_t type, UInt_t level, const char *module, const char *className, const char *function, const char *file, Int_t line, Bool_t print) |
static void | RestoreStdout (Int_t original) |
static void | RestoreStderr (Int_t original) |
static ostream & | Stream (EType_t type, UInt_t level, const char *module, const char *className, const char *function, const char *file, Int_t line) |
static void | TestException (Int_t level=10) |
Private Types | |
enum | { kDebugOffset = kDebug-1 } |
Private Member Functions | |
AliLog () | |
virtual | ~AliLog () |
AliLog (const AliLog &log) | |
AliLog & | operator= (const AliLog &log) |
void | ReadEnvSettings () |
void | CloseFile (Int_t type) |
FILE * | GetOutputStream (Int_t type) |
UInt_t | GetLogLevel (const char *module, const char *className) const |
void | PrintMessage (UInt_t type, const char *message, const char *module, const char *className, const char *function, const char *file, Int_t line) |
void | PrintString (Int_t type, FILE *stream, const char *format,...) |
void | PrintRepetitions () |
Int_t | RedirectTo (FILE *stream, EType_t type, UInt_t level, const char *module, const char *className, const char *function, const char *file, Int_t line, Bool_t print) |
ostream & | GetStream (EType_t type, UInt_t level, const char *module, const char *className, const char *function, const char *file, Int_t line) |
Static Private Member Functions | |
static void | RootErrorHandler (Int_t level, Bool_t abort, const char *location, const char *message) |
Private Attributes | |
UInt_t | fGlobalLogLevel |
TObjArray | fModuleDebugLevels |
TObjArray | fClassDebugLevels |
Int_t | fOutputTypes [kMaxType] |
TString | fFileNames [kMaxType] |
FILE * | fOutputFiles [kMaxType] |
ostream * | fOutputStreams [kMaxType] |
log output files More... | |
Bool_t | fPrintType [kMaxType] |
log output streams More... | |
Bool_t | fPrintModule [kMaxType] |
Bool_t | fPrintScope [kMaxType] |
Bool_t | fPrintLocation [kMaxType] |
Bool_t | fPrintRepetitions |
Int_t | fRepetitions |
UInt_t | fLastType |
counter of repetitions More... | |
TString | fLastMessage |
type of last message More... | |
TString | fLastModule |
last message More... | |
TString | fLastClassName |
module name of last message More... | |
TString | fLastFunction |
class name of last message More... | |
TString | fLastFile |
function name of last message More... | |
Int_t | fLastLine |
file name of last message More... | |
AliLogNotification | fCallBacks [kMaxType] |
line number of last message More... | |
Static Private Attributes | |
static AliLog * | fgInstance = NULL |
static Bool_t | fgDebugEnabled = kTRUE |
pointer to current instance More... | |
static Bool_t | fgCoreEnabled = kFALSE |
typedef void(* AliLog::AliLogNotification) (EType_t type, const char *message) |
enum AliLog::EType_t |
|
private |
default private constructor
Definition at line 97 of file AliLog.cxx.
Referenced by ClearClassDebugLevel(), ClearModuleDebugLevel(), Flush(), GetDebugLevel(), GetGlobalDebugLevel(), GetGlobalLogLevel(), GetLogLevel(), IsDebugEnabled(), Message(), RedirectStderrTo(), RedirectStdoutTo(), SetClassDebugLevel(), SetErrorOutput(), SetFileOutput(), SetGlobalDebugLevel(), SetGlobalLogLevel(), SetHandleRootMessages(), SetLogNotification(), SetModuleDebugLevel(), SetPrintLocation(), SetPrintModule(), SetPrintRepetitions(), SetPrintScope(), SetPrintType(), SetStandardOutput(), SetStreamOutput(), Stream(), and WriteToFile().
|
privatevirtual |
|
private |
Definition at line 175 of file AliLog.cxx.
|
static |
Definition at line 530 of file AliLog.cxx.
|
static |
Definition at line 502 of file AliLog.cxx.
|
private |
Definition at line 623 of file AliLog.cxx.
Referenced by GetOutputStream(), IsDebugEnabled(), SetErrorOutput(), SetFileOutput(), SetStandardOutput(), SetStreamOutput(), and ~AliLog().
|
static |
Definition at line 966 of file AliLog.cxx.
Referenced by IsDebugEnabled().
|
static |
delete the root logger singleton instance
Definition at line 85 of file AliLog.cxx.
|
static |
Definition at line 429 of file AliLog.cxx.
Referenced by ReadEnvSettings().
|
static |
Definition at line 422 of file AliLog.cxx.
Referenced by AliFMDBaseDA::Runner::Init().
|
static |
Definition at line 685 of file AliLog.cxx.
Referenced by AliFMDRawReader::ReadbackError(), rec(), recMag5(), and runDataReconstruction().
|
static |
Definition at line 843 of file AliLog.cxx.
Referenced by AliTrackResidualsLinear::AddPoints(), AliTrackFitterRieman::AliTrackFitterRieman(), AliFMDv1::CheckHit(), AliMUONTrackReconstructorK::ComplementTracks(), AliMUONTrackReconstructor::ComplementTracks(), AliFMDHitDigitizer::Digitize(), AliFMDDigitizer::Digitize(), AliTRDTKDInterpolator::Eval(), AliFMD::FinishEvent(), AliTrackFitterRieman::Fit(), AliMUONTrackReconstructor::Fit(), AliMUONVTrackReconstructor::FollowLinearTrackInChamber(), AliMUONVTrackReconstructor::FollowLinearTrackInStation(), AliMUONTrackReconstructor::FollowTrackInChamber(), AliMUONTrackReconstructorK::FollowTrackInChamber(), AliMUONTrackReconstructor::FollowTrackInStation(), AliMUONTrackReconstructorK::FollowTrackInStation(), AliFMDParameters::GetEntry(), AliTrackFitterRieman::GetPCA(), AliMUONTrackReconstructorK::ImproveTrack(), AliMUONTrackReconstructor::ImproveTrack(), AliFMDBaseDigitizer::Init(), IsDebugEnabled(), AliFMDRawReader::NewDDL(), AliTrackFitterRieman::operator=(), AliSurveyObj::ParseBuffer(), AliFMDInput::ProcessRawCalibDigits(), AliFMDInput::ProcessRawDigits(), AliFMDReconstructor::ProcessSignal(), AliFMD::Raw2SDigits(), AliFMDRawReader::ReadAdcs(), AliMUONTrackReconstructorK::RetracePartialTrack(), AliFMDBaseDA::Run(), AliTRDPIDResponse::SetPIDResponseObject(), and AliTRDTKDInterpolator::AliTRDTKDNodeInfo::Store().
|
static |
Definition at line 476 of file AliLog.cxx.
Referenced by AliMUONTrackReconstructorK::ComplementTracks(), AliMUONTrackReconstructor::ComplementTracks(), AliEMCALRecPoint::EvalLocal2TrackingCSTransform(), AliVertexerTracks::FindVerticesMV(), AliMUONTrackReconstructor::Fit(), AliMUONVTrackReconstructor::FollowLinearTrackInChamber(), AliMUONVTrackReconstructor::FollowLinearTrackInStation(), AliMUONTrackReconstructor::FollowTrackInChamber(), AliMUONTrackReconstructorK::FollowTrackInChamber(), AliMUONTrackReconstructor::FollowTrackInStation(), AliMUONTrackReconstructorK::FollowTrackInStation(), AliMUONTrackReconstructor::FollowTracks(), AliMUONTrackReconstructorK::ImproveTrack(), AliMUONTrackReconstructor::ImproveTrack(), AliEMCALv0::Init(), AliMUONVTrackReconstructor::MakeSegmentsBetweenChambers(), AliTPCCalibRawBase::ProcessEvent(), and AliMUONTrackReconstructorK::RetracePartialTrack().
|
static |
Definition at line 457 of file AliLog.cxx.
|
private |
Definition at line 826 of file AliLog.cxx.
Referenced by GetDebugLevel(), GetStream(), IsDebugEnabled(), Message(), and RedirectTo().
|
private |
Definition at line 648 of file AliLog.cxx.
Referenced by GetStream(), IsDebugEnabled(), PrintMessage(), PrintRepetitions(), and RedirectTo().
|
static |
get root logger singleton instance
Definition at line 71 of file AliLog.cxx.
Referenced by AliMUONCDB::CheckHV_ALIROOT_6402(), AliMUONCDB::ShowFaultyBusPatches(), and AliMUONCDB::ShowFaultyPedestalsBusPatches().
|
private |
Definition at line 1075 of file AliLog.cxx.
Referenced by IsDebugEnabled(), and Stream().
|
static |
Definition at line 1214 of file AliLog.cxx.
Referenced by Message().
|
static |
Definition at line 929 of file AliLog.cxx.
Referenced by AliEMCALGeometry::AliEMCALGeometry(), Config(), AliTPCcalibDB::CreateGUITree(), AliTPCcalibDB::CreateRefFile(), Debug(), AliFMDQADataMakerSim::EndOfDetectorCycle(), AliFMDQADataMakerRec::EndOfDetectorCycle(), AliFMDParameters::GetEntry(), IsDebugEnabled(), RootErrorHandler(), and TestEMCALSimulation().
Definition at line 197 of file AliLog.cxx.
Referenced by IsDebugEnabled().
|
private |
Definition at line 852 of file AliLog.cxx.
Referenced by GetStream(), IsDebugEnabled(), Message(), and RedirectTo().
|
private |
Definition at line 919 of file AliLog.cxx.
Referenced by IsDebugEnabled(), PrintMessage(), SetPrintRepetitions(), and ~AliLog().
|
private |
Definition at line 1154 of file AliLog.cxx.
Referenced by IsDebugEnabled(), PrintMessage(), and PrintRepetitions().
|
private |
gSystem see TSystem.h gEnv see TEnv.h
LOG_NO_DEBUG: fgDebugEnabled <- false AliRoot.AliLog.EnableDebug AliRoot.AliLog.GlobalLogLevel
Definition at line 215 of file AliLog.cxx.
Referenced by AliLog(), and IsDebugEnabled().
|
static |
Definition at line 991 of file AliLog.cxx.
Referenced by IsDebugEnabled().
|
static |
Definition at line 979 of file AliLog.cxx.
Referenced by IsDebugEnabled().
|
private |
Definition at line 1003 of file AliLog.cxx.
Referenced by IsDebugEnabled(), RedirectStderrTo(), and RedirectStdoutTo().
|
static |
Definition at line 1052 of file AliLog.cxx.
Referenced by IsDebugEnabled().
|
static |
Definition at line 1042 of file AliLog.cxx.
Referenced by IsDebugEnabled().
|
staticprivate |
Definition at line 397 of file AliLog.cxx.
Referenced by IsDebugEnabled(), and SetHandleRootMessages().
|
static |
Definition at line 513 of file AliLog.cxx.
Referenced by AliPIDCombined::AliPIDCombined(), AliPIDResponse::AliPIDResponse(), AliProdInfo::AliProdInfo(), AliTOFPIDResponse::AliTOFPIDResponse(), AliTPCPIDResponse::AliTPCPIDResponse(), AliSelector::CheckOptions(), DIMUONFakes(), FindKrClustersRaw(), main(), MUONFakes(), MUONRecoCheck(), ReadEnvSettings(), recMag5(), recTPC(), recTracking(), AliLoader::SetDebug(), and TestMatrices().
|
static |
Definition at line 565 of file AliLog.cxx.
Referenced by ReadEnvSettings().
|
static |
Definition at line 577 of file AliLog.cxx.
|
static |
Definition at line 588 of file AliLog.cxx.
Referenced by ReadEnvSettings().
|
static |
Definition at line 606 of file AliLog.cxx.
|
static |
Definition at line 466 of file AliLog.cxx.
Referenced by AliMUONAlignmentTask::FinishTaskOutput(), AliQAv1::SetQADebug(), testRawReaderFastDDL(), and testRawReaderFastTPC().
|
static |
Definition at line 447 of file AliLog.cxx.
Referenced by AliMUONCDB::CheckHV_ALIROOT_6402(), AliMUONAlignmentTask::FinishTaskOutput(), AliMUONCDB::ShowFaultyBusPatches(), AliMUONCDB::ShowFaultyPedestalsBusPatches(), testRawReaderFastDDL(), and testRawReaderFastTPC().
|
static |
Definition at line 702 of file AliLog.cxx.
Referenced by AliLog(), and ReadEnvSettings().
|
static |
Definition at line 1133 of file AliLog.cxx.
|
static |
Definition at line 1142 of file AliLog.cxx.
|
static |
Definition at line 485 of file AliLog.cxx.
Referenced by Convert2Raw(), Digits2Raw(), DrawGeometry(), FindKrClustersRaw(), Hits2SDigits(), AliFMDBaseDA::Runner::Init(), main(), MakeAlignment(), MakeResidualAlignment(), PatternDigits(), PatternRecs(), PatternSDigits(), Raw2ESD(), ReadEnvSettings(), ReadRaw(), recMag5(), Reconstruct(), ShowFMDITS(), Simulate(), TestAlignable(), TestHWMap(), TestPedestalDA(), TestRaw2SDigits(), TestRawReader(), and TestZeroSuppress().
|
static |
Definition at line 780 of file AliLog.cxx.
|
static |
Definition at line 792 of file AliLog.cxx.
|
static |
Definition at line 737 of file AliLog.cxx.
|
static |
Definition at line 748 of file AliLog.cxx.
|
static |
Definition at line 804 of file AliLog.cxx.
Referenced by AliFMDRawReader::ReadAdcs().
|
static |
Definition at line 758 of file AliLog.cxx.
|
static |
Definition at line 769 of file AliLog.cxx.
|
static |
Definition at line 716 of file AliLog.cxx.
|
static |
Definition at line 727 of file AliLog.cxx.
|
static |
Definition at line 542 of file AliLog.cxx.
Referenced by ReadEnvSettings().
|
static |
Definition at line 554 of file AliLog.cxx.
|
static |
Definition at line 1105 of file AliLog.cxx.
Referenced by main().
|
static |
Definition at line 1116 of file AliLog.cxx.
|
static |
Definition at line 1063 of file AliLog.cxx.
Referenced by IsDebugEnabled().
|
static |
Definition at line 1240 of file AliLog.cxx.
Referenced by IsDebugEnabled().
|
static |
Definition at line 816 of file AliLog.cxx.
|
private |
line number of last message
Definition at line 179 of file AliLog.h.
Referenced by AliLog(), PrintMessage(), PrintRepetitions(), and SetLogNotification().
|
private |
Definition at line 157 of file AliLog.h.
Referenced by ClearClassDebugLevel(), GetLogLevel(), SetClassDebugLevel(), and ~AliLog().
|
private |
Definition at line 160 of file AliLog.h.
Referenced by AliLog(), CloseFile(), GetOutputStream(), RedirectTo(), SetFileOutput(), and SetStreamOutput().
|
staticprivate |
Definition at line 153 of file AliLog.h.
Referenced by EnableCoreDump(), and Message().
|
staticprivate |
pointer to current instance
Definition at line 152 of file AliLog.h.
Referenced by EnableDebug(), IsDebugEnabled(), and ReadEnvSettings().
|
staticprivate |
Definition at line 151 of file AliLog.h.
Referenced by AliLog(), ClearClassDebugLevel(), ClearModuleDebugLevel(), DeleteRootLogger(), Flush(), GetDebugLevel(), GetGlobalDebugLevel(), GetGlobalLogLevel(), GetLogLevel(), Message(), RedirectStderrTo(), RedirectStdoutTo(), SetClassDebugLevel(), SetErrorOutput(), SetFileOutput(), SetGlobalDebugLevel(), SetGlobalLogLevel(), SetHandleRootMessages(), SetLogNotification(), SetModuleDebugLevel(), SetPrintLocation(), SetPrintModule(), SetPrintRepetitions(), SetPrintScope(), SetPrintType(), SetStandardOutput(), SetStreamOutput(), Stream(), WriteToFile(), and ~AliLog().
|
private |
Definition at line 155 of file AliLog.h.
Referenced by GetGlobalDebugLevel(), GetGlobalLogLevel(), GetLogLevel(), ReadEnvSettings(), SetGlobalDebugLevel(), and SetGlobalLogLevel().
|
private |
|
private |
function name of last message
Definition at line 177 of file AliLog.h.
Referenced by PrintMessage().
|
private |
|
private |
|
private |
|
private |
|
private |
counter of repetitions
Definition at line 172 of file AliLog.h.
Referenced by PrintMessage(), and PrintRepetitions().
|
private |
Definition at line 156 of file AliLog.h.
Referenced by ClearModuleDebugLevel(), GetLogLevel(), SetModuleDebugLevel(), and ~AliLog().
|
private |
Definition at line 161 of file AliLog.h.
Referenced by AliLog(), CloseFile(), Flush(), GetOutputStream(), SetFileOutput(), and SetStreamOutput().
|
private |
log output files
Definition at line 162 of file AliLog.h.
Referenced by AliLog(), CloseFile(), Flush(), GetOutputStream(), GetStream(), PrintString(), SetFileOutput(), and SetStreamOutput().
|
private |
Definition at line 159 of file AliLog.h.
Referenced by AliLog(), CloseFile(), GetOutputStream(), GetStream(), PrintString(), RedirectTo(), SetErrorOutput(), SetFileOutput(), SetStandardOutput(), and SetStreamOutput().
|
private |
Definition at line 167 of file AliLog.h.
Referenced by AliLog(), PrintMessage(), ReadEnvSettings(), and SetPrintLocation().
|
private |
Definition at line 165 of file AliLog.h.
Referenced by AliLog(), PrintMessage(), ReadEnvSettings(), and SetPrintModule().
|
private |
Definition at line 169 of file AliLog.h.
Referenced by PrintMessage(), ReadEnvSettings(), and SetPrintRepetitions().
|
private |
Definition at line 166 of file AliLog.h.
Referenced by AliLog(), PrintMessage(), ReadEnvSettings(), and SetPrintScope().
|
private |
log output streams
Definition at line 164 of file AliLog.h.
Referenced by AliLog(), PrintMessage(), ReadEnvSettings(), and SetPrintType().
|
private |
Definition at line 171 of file AliLog.h.
Referenced by PrintMessage(), PrintRepetitions(), SetPrintRepetitions(), and ~AliLog().