Created
May 8, 2017 21:37
-
-
Save solvingj/1e5bfdc1e1ba69f92d38072211568209 to your computer and use it in GitHub Desktop.
Initialize the Log Wrapper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void InitializeLogToOutput(TraceWriter writer) | |
{ | |
Log = new FunLog() | |
.WithInfoAction(msg => writer.Info(msg)) | |
.WithErrorAction(msg => writer.Error(msg)) | |
.WithVerboseAction(msg => writer.Verbose(msg)) | |
.WithWarningAction(msg => writer.Warning(msg)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment