List all Named Pipes in Windows
· One min read
<code class="cmd">C:\> dir \\.\pipe\\
<code class="cmd">C:\> dir \\.\pipe\\
Log.Logger = new LoggerConfiguration()
.ReadFrom.Configuration(configuration)
.Enrich.FromLogContext()
.CreateLogger();
LogContext.PushProperty("GameId", gameId);
LogContext.PushProperty("RegionId", regionId);
LogContext.PushProperty("AreaId", areaId);
LogContext.PushProperty("WorldId", worldId);
LogContext.PushProperty("WorldName", worldName);
LogContext.PushProperty("WorldType", GamePodInfo.IsPublicWorld ? "公共区" : "普通区");
LogContext.PushProperty("PodId", podId);
Log.Logger.Information("TEST");
_logger.LogInformation("TEST2");
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss zzz} {Level:u4}] [{GameId}/{RegionId}] {Message:lj} <s:{SourceContext}>{NewLine}{Exception}"
https://www.cnblogs.com/weihanli/p/custom-serilog-enricher-to-record-more-info.html 自定义 template
https://github.com/serilog/serilog/issues/1024
https://stackoverflow.com/questions/48591809/how-to-add-my-own-properties-to-serilog-output-template