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.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
)

Parameters

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