| SimpleConfiguratorConfigureForTargetLogging Method (Target, LogLevel) |
Note: This API is now obsolete.
Configures NLog for to log to the specified target so that all messages
above and including the specified level are output.
Namespace:
NLog.Config
Assembly:
NLog (in NLog.dll) Version: 5.2.0+eed5f76d158dbcaef9326f7a0e1c281adad171e8
Syntax [ObsoleteAttribute("Use LogManager.Setup().LoadConfiguration(c => c.ForLogger(minLevel).WriteTo(target)) instead. Marked obsolete on NLog 5.2")]
public static void ConfigureForTargetLogging(
Target target,
LogLevel minLevel
)
<ObsoleteAttribute("Use LogManager.Setup().LoadConfiguration(c => c.ForLogger(minLevel).WriteTo(target)) instead. Marked obsolete on NLog 5.2")>
Public Shared Sub ConfigureForTargetLogging (
target As Target,
minLevel As LogLevel
)
Dim target As Target
Dim minLevel As LogLevel
SimpleConfigurator.ConfigureForTargetLogging(target,
minLevel)
[<ObsoleteAttribute("Use LogManager.Setup().LoadConfiguration(c => c.ForLogger(minLevel).WriteTo(target)) instead. Marked obsolete on NLog 5.2")>]
static member ConfigureForTargetLogging :
target : Target *
minLevel : LogLevel -> unit
Parameters
- target
- Type: NLog.TargetsTarget
The target to log all messages to. - minLevel
- Type: NLogLogLevel
The minimal logging level.
See Also