Logger Class |
Namespace: Sfs2X.WebSocketSharp
public class Logger
The Logger type exposes the following members.
| Name | Description | |
|---|---|---|
| Logger |
Initializes a new instance of the Logger class.
| |
| Logger(LogLevel) |
Initializes a new instance of the Logger class with
the specified logging level.
| |
| Logger(LogLevel, String, ActionLogData, String) |
Initializes a new instance of the Logger class with
the specified logging level, path to the log file,
and output action.
|
| Name | Description | |
|---|---|---|
| File |
Gets or sets the current path to the log file.
| |
| Level |
Gets or sets the current logging level.
| |
| Output |
Gets or sets the current output action used to output a log.
|
| Name | Description | |
|---|---|---|
| Debug |
Outputs message as a log with Debug.
| |
| Error |
Outputs message as a log with Error.
| |
| Fatal |
Outputs message as a log with Fatal.
| |
| Info |
Outputs message as a log with Info.
| |
| Trace |
Outputs message as a log with Trace.
| |
| Warn |
Outputs message as a log with Warn.
|
If you output a log with lower than the value of the Level property, it cannot be outputted.
The default output action writes a log to the standard output stream and the log file if the File property has a valid path to it.
If you would like to use the custom output action, you should set the Output property to any Action<LogData, string> delegate.