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...
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.
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
-
reactor | The reactor object. |
void IBM.Watson.DeveloperCloud.Logging.LogSystem.ProcessLog |
( |
LogRecord |
log | ) |
|
|
inline |
Send the given LogRecord to all installed reactors.
- Parameters
-
bool IBM.Watson.DeveloperCloud.Logging.LogSystem.RemoveReactor |
( |
ILogReactor |
reactor | ) |
|
|
inline |
Removes a reactor from this Logger.
- Parameters
-
reactor | The reactor to remove. |
- Returns
- Returns true on success.
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: