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.FileReactor Class Reference

FileReactor log reactor class. More...

Inheritance diagram for IBM.Watson.DeveloperCloud.Logging.FileReactor:
IBM.Watson.DeveloperCloud.Logging.ILogReactor

Public Member Functions

 FileReactor (string logFile, LogLevel level=LogLevel.DEBUG, int logHistory=2, int maxLogSize=1024 *1024)
 FileReactor constructor. More...
 
void RotateLogs ()
 
void ProcessLog (LogRecord log)
 Process a LogRecord object. More...
 

Properties

string LogFile [get, set]
 The filename of the log file. More...
 
LogLevel Level [get, set]
 Minimum level of messages to save into the log file. More...
 
int LogHistory [get, set]
 How many log files to maintain. More...
 
int MaxLogSize [get, set]
 Maximum size of a log file before we rotate. More...
 
string LogTextWritten [get]
 Gets the log text written to the file system More...
 

Detailed Description

FileReactor log reactor class.

Constructor & Destructor Documentation

IBM.Watson.DeveloperCloud.Logging.FileReactor.FileReactor ( string  logFile,
LogLevel  level = LogLevel.DEBUG,
int  logHistory = 2,
int  maxLogSize = 1024 * 1024 
)
inline

FileReactor constructor.

Parameters
logFileThe FileName of the log file.
levelThe minimum level of log messages to be logged into the file.
logHistoryHow many log files to keep as they are rotated each time this reactor is constructed.

Member Function Documentation

void IBM.Watson.DeveloperCloud.Logging.FileReactor.ProcessLog ( LogRecord  log)
inline

Process a LogRecord object.

Parameters
logThe log record.

Implements IBM.Watson.DeveloperCloud.Logging.ILogReactor.

void IBM.Watson.DeveloperCloud.Logging.FileReactor.RotateLogs ( )
inline

Property Documentation

LogLevel IBM.Watson.DeveloperCloud.Logging.FileReactor.Level
getset

Minimum level of messages to save into the log file.

string IBM.Watson.DeveloperCloud.Logging.FileReactor.LogFile
getset

The filename of the log file.

int IBM.Watson.DeveloperCloud.Logging.FileReactor.LogHistory
getset

How many log files to maintain.

string IBM.Watson.DeveloperCloud.Logging.FileReactor.LogTextWritten
get

Gets the log text written to the file system

The log text written.

int IBM.Watson.DeveloperCloud.Logging.FileReactor.MaxLogSize
getset

Maximum size of a log file before we rotate.


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