Serillog v2.3.0 throws compile error for PermitCrossAppDomainCalls

时间:2017-04-10 02:28:57

标签: c# logging nuget-package serilog

My app is currently using Serilog version 1.5 for logging and we have decided to upgrade to Serilog 2.3.0. When upgrading am running into a compile time error for PermitCrossAppDomainCalls. Any ideas if the property is supported in Serilog v2.3?

Error Line: LogContext.PermitCrossAppDomainCalls = true;

Error Message 'Serilog.Context.LogContext' does not contain a definition for 'PermitCrossAppDomainCalls'

1 个答案:

答案 0 :(得分:0)

Serilog 2.0不再需要此设置 - 它启用的功能将“正常工作”。您可以安全地删除对属性设置器的调用。