This project has retired. For details please refer to its Attic page.
Apache REEF: Org.Apache.REEF.Utilities.Logging.Logger Class Reference
Apache REEF  0.15.0
Retainable Evaluator Execution Framework
Classes | Public Member Functions | Static Public Member Functions | Properties | List of all members
Org.Apache.REEF.Utilities.Logging.Logger Class Reference

Public Member Functions

bool IsLoggable (Level level)
 Determines whether or not the current log level will be logged by the logger. More...
 
void Log (Level level, string formatStr, params object[] args)
 Log the message with the specified Log Level. More...
 
void Log (Level level, string msg, Exception exception)
 
IDisposable LogFunction (string function, params object[] args)
 
IDisposable LogScope (string format, params object[] args)
 

Static Public Member Functions

static void SetCustomLevel (Level customLevel)
 
static void AddTraceListener (TraceListener listener)
 
static Logger GetLogger (Type type)
 
static Logger GetLogger (string name)
 

Properties

static Level CustomLevel [get, set]
 
Level InstanceLevel [get, set]
 
static List< TraceListener > TraceListeners [get]
 

Member Function Documentation

static void Org.Apache.REEF.Utilities.Logging.Logger.AddTraceListener ( TraceListener  listener)
inlinestatic
static Logger Org.Apache.REEF.Utilities.Logging.Logger.GetLogger ( Type  type)
inlinestatic
static Logger Org.Apache.REEF.Utilities.Logging.Logger.GetLogger ( string  name)
inlinestatic
bool Org.Apache.REEF.Utilities.Logging.Logger.IsLoggable ( Level  level)
inline

Determines whether or not the current log level will be logged by the logger.

void Org.Apache.REEF.Utilities.Logging.Logger.Log ( Level  level,
string  formatStr,
params object[]  args 
)
inline

Log the message with the specified Log Level.

If addtional arguments are passed, the message will be treated as a format string. The format string and the additional arguments will be formatted according to string.Format()

Parameters
level
formatStr
args
void Org.Apache.REEF.Utilities.Logging.Logger.Log ( Level  level,
string  msg,
Exception  exception 
)
inline
IDisposable Org.Apache.REEF.Utilities.Logging.Logger.LogFunction ( string  function,
params object[]  args 
)
inline
IDisposable Org.Apache.REEF.Utilities.Logging.Logger.LogScope ( string  format,
params object[]  args 
)
inline
static void Org.Apache.REEF.Utilities.Logging.Logger.SetCustomLevel ( Level  customLevel)
inlinestatic

Property Documentation

Level Org.Apache.REEF.Utilities.Logging.Logger.CustomLevel
staticgetset
Level Org.Apache.REEF.Utilities.Logging.Logger.InstanceLevel
getset
List<TraceListener> Org.Apache.REEF.Utilities.Logging.Logger.TraceListeners
staticget

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