Created
May 8, 2015 15:15
-
-
Save grumpydev/0a0be1d2cba009b37d3c to your computer and use it in GitHub Desktop.
Revisions
-
grumpydev created this gist
May 8, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ public LoggerConfiguration BuildLogger( LoggerConfiguration logConfiguration, LogEventLevel logLevel, string nodeName, string roleName) { var path = this.SanitisePath(this.GetPath(logLevel, nodeName, roleName, this._configuration)); var configuration = logConfiguration.WriteTo.Seq(this._serverUrl, logLevel, bufferBaseFilename: path, period: TimeSpan.FromMinutes(1)); configuration.Enrich.FromLogContext(); return configuration; }