Property Log
Log
Gets or sets the log.
Declaration
public static Action<string> Log { get; set; }
Property Value
Type | Description |
---|---|
Action<System.String> | The log. |
Remarks
If Log is not set it will return a dummy action
x => { return; })
eliminating the need for null-reference checks.
Examples
The following is an example of assigning a observer to the logging module:
Logger.Log = x => Console.WriteLine(x);