C-DEngine 5.105

Logger Constructor (LogLevel, String, Action<(Of <(<'LogData, String>)>)>)

Initializes a new instance of the Logger class with the specified logging level, path to the log file, and output action.

Namespace:  WebSocketSharp
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public Logger(
	LogLevel level,
	string file,
	Action<LogData, string> output
)
Public Sub New ( _
	level As LogLevel, _
	file As String, _
	output As Action(Of LogData, String) _
)
public:
Logger(
	LogLevel^ level, 
	String^ file, 
	Action<LogData^, String^>^ output
)

Parameters

level
Type: WebSocketSharp..::..LogLevel
One of the LogLevel enum values.
file
Type: String
A String that represents the path to the log file.
output
Type: Action<(Of <(<'LogData, String>)>)>
An Action<LogData, string> delegate that references the method(s) used to output a log. A String parameter passed to this delegate is file.