<PackageReference Include="NLog" Version="6.2.0" />

NLog.Config.SimpleConfigurator

public static class SimpleConfigurator
Obsolete and replaced by Setup with NLog v5.2. Provides simple programmatic configuration API used for trivial logging cases. Warning, these methods will overwrite the current config.
public static void ConfigureForConsoleLogging()

Obsolete and replaced by Setup and WriteToConsole with NLog v5.2. Configures NLog for console logging so that all messages above and including the Info level are output to the console.

public static void ConfigureForConsoleLogging(LogLevel minLevel)

Obsolete and replaced by Setup and WriteToConsole with NLog v5.2. Configures NLog for console logging so that all messages above and including the specified level are output to the console.

public static void ConfigureForFileLogging(string fileName)

Obsolete and replaced by Setup and WriteToFile with NLog v5.2. Configures NLog for file logging so that all messages above and including the Info level are written to the specified file.

public static void ConfigureForFileLogging(string fileName, LogLevel minLevel)

Obsolete and replaced by Setup and WriteToFile with NLog v5.2. Configures NLog for file logging so that all messages above and including the specified level are written to the specified file.

public static void ConfigureForTargetLogging(Target target)

Obsolete and replaced by Setup with NLog v5.2. Configures NLog for to log to the specified target so that all messages above and including the Info level are output.

public static void ConfigureForTargetLogging(Target target, LogLevel minLevel)

Obsolete and replaced by Setup with NLog v5.2. Configures NLog for to log to the specified target so that all messages above and including the specified level are output.