Click or drag to resize

Logger Class

Logger class. Used for exception logging.
Inheritance Hierarchy
SystemObject
  ZylSoft.SerialLogger

Namespace: ZylSoft.Serial
Assembly: ZylSerialPort (in ZylSerialPort.dll) Version: 1.83.8519.34486
Syntax
public static class Logger

The Logger type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberActive Activate exception logging. Default: true
Public propertyStatic memberCode exampleExceptionLogFile Full path of the exception log file. Set the exception log file to configure exception logging.
Top
Methods
 NameDescription
Public methodStatic memberWriteLog(String) Writes text in the log file.
Public methodStatic memberWriteLog(String, String, Boolean) Writes text in the log file.
Public methodStatic memberWriteLogException(Exception) Writes the exception details in the log file.
Public methodStatic memberWriteLogException(Object, Exception) Writes the exception details in the log file.
Public methodStatic memberWriteLogInfo Writes information in the log file.
Top
See Also