Project
Loading...
Searching...
No Matches
FairLogger Class Reference

#include <FairLogger.h>

Public Member Functions

void SetLogToScreen (bool enabled)
 
void SetLogScreenLevel (const char *severity)
 
void SetLogToFile (bool enabled)
 
void SetLogFileLevel (const char *severity)
 
void SetLogFileName (const std::string &name)
 
void SetColoredLog (bool enabled)
 
void SetLogVerbosityLevel (const char *verbosity)
 
bool IsLogNeeded (fair::Severity severity)
 
void Error (const char *file, const char *line, const char *func, const char *format,...) __attribute__((deprecated("Use 'LOG(error) << content
 
void Warning (const char *file, const char *line, const char *func, const char *format,...) __attribute__((deprecated("Use 'LOG(warn) << content
 
void Info (const char *file, const char *line, const char *func, const char *format,...) __attribute__((deprecated("Use 'LOG(info) << content
 
void Debug (const char *file, const char *line, const char *func, const char *format,...) __attribute__((deprecated("Use 'LOG(debug) << content
 
void Debug1 (const char *file, const char *line, const char *func, const char *format,...) __attribute__((deprecated("Use 'LOG(debug1) << content
 
void Debug2 (const char *file, const char *line, const char *func, const char *format,...) __attribute__((deprecated("Use 'LOG(debug2) << content
 
void Debug3 (const char *file, const char *line, const char *func, const char *format,...) __attribute__((deprecated("Use 'LOG(debug3) << content
 
void Debug4 (const char *file, const char *line, const char *func, const char *format,...) __attribute__((deprecated("Use 'LOG(debug4) << content
 
void SetScreenStreamToCerr (bool)
 

Static Public Member Functions

static FairLogger * GetLogger ()
 
static char const endl __attribute__ ((deprecated("Line break is now added automatically by the LOG macro, this variable only adds empty space.")))
 
static char const flush __attribute__ ((deprecated("Data is now flushed automatically by the LOG macro, this variable only adds empty space.")))
 

Public Attributes

bool IsLogNeeded(FairLogLevel level) __attribute__((deprecated("Use 'IsLogNeeded(fair macro interface instead
 
macro interface instead
 

Detailed Description

Definition at line 44 of file FairLogger.h.

Member Function Documentation

◆ __attribute__() [1/2]

static char const flush FairLogger::__attribute__ ( (deprecated("Data is now flushed automatically by the LOG macro, this variable only adds empty space."))  )
static

◆ __attribute__() [2/2]

static char const endl FairLogger::__attribute__ ( (deprecated("Line break is now added automatically by the LOG macro, this variable only adds empty space."))  )
static

◆ Debug()

void FairLogger::Debug ( const char *  file,
const char *  line,
const char *  func,
const char *  format,
  ... 
)

Definition at line 86 of file FairLogger.cxx.

◆ Debug1()

void FairLogger::Debug1 ( const char *  file,
const char *  line,
const char *  func,
const char *  format,
  ... 
)

Definition at line 96 of file FairLogger.cxx.

◆ Debug2()

void FairLogger::Debug2 ( const char *  file,
const char *  line,
const char *  func,
const char *  format,
  ... 
)

Definition at line 106 of file FairLogger.cxx.

◆ Debug3()

void FairLogger::Debug3 ( const char *  file,
const char *  line,
const char *  func,
const char *  format,
  ... 
)

Definition at line 116 of file FairLogger.cxx.

◆ Debug4()

void FairLogger::Debug4 ( const char *  file,
const char *  line,
const char *  func,
const char *  format,
  ... 
)

Definition at line 126 of file FairLogger.cxx.

◆ Error()

void FairLogger::Error ( const char *  file,
const char *  line,
const char *  func,
const char *  format,
  ... 
)

Definition at line 56 of file FairLogger.cxx.

◆ GetLogger()

FairLogger * FairLogger::GetLogger ( )
static

Definition at line 39 of file FairLogger.cxx.

◆ Info()

void FairLogger::Info ( const char *  file,
const char *  line,
const char *  func,
const char *  format,
  ... 
)

Definition at line 76 of file FairLogger.cxx.

◆ IsLogNeeded()

bool FairLogger::IsLogNeeded ( fair::Severity  severity)

Definition at line 174 of file FairLogger.cxx.

◆ SetColoredLog()

void FairLogger::SetColoredLog ( bool  enabled)
inline

Definition at line 85 of file FairLogger.h.

◆ SetLogFileLevel()

void FairLogger::SetLogFileLevel ( const char *  severity)
inline

Definition at line 73 of file FairLogger.h.

◆ SetLogFileName()

void FairLogger::SetLogFileName ( const std::string &  name)
inline

Definition at line 79 of file FairLogger.h.

◆ SetLogScreenLevel()

void FairLogger::SetLogScreenLevel ( const char *  severity)
inline

Definition at line 58 of file FairLogger.h.

◆ SetLogToFile()

void FairLogger::SetLogToFile ( bool  enabled)
inline

Definition at line 64 of file FairLogger.h.

◆ SetLogToScreen()

void FairLogger::SetLogToScreen ( bool  enabled)
inline

Definition at line 49 of file FairLogger.h.

◆ SetLogVerbosityLevel()

void FairLogger::SetLogVerbosityLevel ( const char *  verbosity)
inline

Definition at line 87 of file FairLogger.h.

◆ SetScreenStreamToCerr()

void FairLogger::SetScreenStreamToCerr ( bool  )
inline

Definition at line 118 of file FairLogger.h.

◆ Warning()

void FairLogger::Warning ( const char *  file,
const char *  line,
const char *  func,
const char *  format,
  ... 
)

Definition at line 66 of file FairLogger.cxx.

Member Data Documentation

◆ instead [1/2]

macro interface FairLogger::instead

Definition at line 95 of file FairLogger.h.

◆ instead [2/2]

macro interface FairLogger::instead

Definition at line 97 of file FairLogger.h.


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