Watson Developer Cloud Unity SDK  1.0.0
The Unity SDK uses the Watson Developer Cloud services, a collection of REST APIs and SDKs that use cognitive computing to solve complex problems.
IBM.Watson.DeveloperCloud.Logging.LogSystem Class Reference

This singleton class maintains the of list of installed reactors and handles all LogRecord objects. See the static class Log for functions the end user of this system should actually be calling. This class is thread safe. More...

Public Member Functions

void InstallReactor (ILogReactor reactor)
 Installs a reactor into this Logger. More...
 
bool RemoveReactor (ILogReactor reactor)
 Removes a reactor from this Logger. More...
 
void ProcessLog (LogRecord log)
 Send the given LogRecord to all installed reactors. More...
 

Static Public Member Functions

static void InstallDefaultReactors (int logHistory=2, LogLevel logLevelFileReactor=LogLevel.STATUS)
 Install a default debug and file reactor. More...
 

Properties

static LogSystem Instance [get]
 Returns the singleton instance of the Logger object. More...
 
static List< ILogReactorReactorsInstalled [get]
 

Detailed Description

This singleton class maintains the of list of installed reactors and handles all LogRecord objects. See the static class Log for functions the end user of this system should actually be calling. This class is thread safe.

Member Function Documentation

static void IBM.Watson.DeveloperCloud.Logging.LogSystem.InstallDefaultReactors ( int  logHistory = 2,
LogLevel  logLevelFileReactor = LogLevel.STATUS 
)
inlinestatic

Install a default debug and file reactor.

void IBM.Watson.DeveloperCloud.Logging.LogSystem.InstallReactor ( ILogReactor  reactor)
inline

Installs a reactor into this Logger.

Parameters
reactorThe reactor object.
void IBM.Watson.DeveloperCloud.Logging.LogSystem.ProcessLog ( LogRecord  log)
inline

Send the given LogRecord to all installed reactors.

Parameters
logThe LogRecord to pass to all reactors.
bool IBM.Watson.DeveloperCloud.Logging.LogSystem.RemoveReactor ( ILogReactor  reactor)
inline

Removes a reactor from this Logger.

Parameters
reactorThe reactor to remove.
Returns
Returns true on success.

Property Documentation

LogSystem IBM.Watson.DeveloperCloud.Logging.LogSystem.Instance
staticget

Returns the singleton instance of the Logger object.

List<ILogReactor> IBM.Watson.DeveloperCloud.Logging.LogSystem.ReactorsInstalled
staticget

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