Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save solvingj/1e5bfdc1e1ba69f92d38072211568209 to your computer and use it in GitHub Desktop.
Save solvingj/1e5bfdc1e1ba69f92d38072211568209 to your computer and use it in GitHub Desktop.
Initialize the Log Wrapper
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