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