mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 22:20:52 +00:00
Allow overriding default ASF NLog settings, #279
This commit is contained in:
@@ -37,6 +37,11 @@ namespace ArchiSteamFarm {
|
||||
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
internal static void Init() {
|
||||
if (LogManager.Configuration != null) {
|
||||
// User provided custom NLog config, or we have it set already, so don't override it
|
||||
return;
|
||||
}
|
||||
|
||||
LoggingConfiguration config = new LoggingConfiguration();
|
||||
|
||||
if (Program.GlobalConfig.LogToFile) {
|
||||
|
||||
Reference in New Issue
Block a user