| LogManagerAddHiddenAssembly Method |
Note: This API is now obsolete.
Adds the given assembly which will be skipped
when NLog is trying to find the calling method on stack trace.
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax [ObsoleteAttribute("Replaced by LogManager.Setup().SetupLogFactory(setup => setup.AddCallSiteHiddenAssembly(assembly)). Marked obsolete on NLog 5.3")]
public static void AddHiddenAssembly(
Assembly assembly
)
<ObsoleteAttribute("Replaced by LogManager.Setup().SetupLogFactory(setup => setup.AddCallSiteHiddenAssembly(assembly)). Marked obsolete on NLog 5.3")>
Public Shared Sub AddHiddenAssembly (
assembly As Assembly
)
Dim assembly As [Assembly]
LogManager.AddHiddenAssembly(assembly)
[<ObsoleteAttribute("Replaced by LogManager.Setup().SetupLogFactory(setup => setup.AddCallSiteHiddenAssembly(assembly)). Marked obsolete on NLog 5.3")>]
static member AddHiddenAssembly :
assembly : Assembly -> unit
Parameters
- assembly
- Type: System.ReflectionAssembly
The assembly to skip.
See Also