Created
May 8, 2015 15:15
-
-
Save grumpydev/0a0be1d2cba009b37d3c to your computer and use it in GitHub Desktop.
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 characters
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment