Logging.Init Static Method
C#
public static void Init(LoggerType loggerType, LogLevel logLevel, string rootFolder, int tcpLogPort)
Initializes the logger. If the logger is already created, another call to Init will not change it. Use this to specify the type of the logger to use, and to give the lowest LogLevel that will be logged. Initializes the unmanaged and the managed logger with similar settings.
In case of a LoggerType.FILE logger, the rootFolder has to be filled. In case of a LoggerType.CONSOLE logger, the rootFolder will be ignored.
Parameters
[LoggerType] loggerType |
The logger type. |
[LogLevel] logLevel |
The log level. |
[string] rootFolder |
[in] If non-null, the logger target, e.g. the file name in which to save the log in case of a FILE logger. |
[int] tcpLogPort |
The port to use when logging over tcp. |