Click or drag to resize

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.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntax
[ObsoleteAttribute("Replaced by LogManager.Setup().SetupLogFactory(setup => setup.AddCallSiteHiddenAssembly(assembly)). Marked obsolete on NLog 5.3")]
public static void AddHiddenAssembly(
	Assembly assembly
)

Parameters

assembly
Type: System.ReflectionAssembly
The assembly to skip.
See Also