If not running cli add back console output
This commit is contained in:
parent
5b89cbd042
commit
18134cdf01
@ -9,7 +9,7 @@ public class CommonObjects
|
||||
{
|
||||
public HashSet<LibraryManager> libraryManagers { get; init; }
|
||||
public HashSet<NotificationManager> notificationManagers { get; init; }
|
||||
public Logger? logger { get; init; }
|
||||
public Logger? logger { get; set; }
|
||||
[JsonIgnore]private string settingsFilePath { get; init; }
|
||||
|
||||
public CommonObjects(HashSet<LibraryManager>? libraryManagers, HashSet<NotificationManager>? notificationManagers, Logger? logger, string settingsFilePath)
|
||||
|
@ -51,6 +51,8 @@ public static class Tranga
|
||||
|
||||
if(!RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
|
||||
TaskMode(taskManager, logger);
|
||||
else
|
||||
taskManager.commonObjects.logger = new(new[] { Logger.LoggerType.FileLogger, Logger.LoggerType.ConsoleLogger }, Console.Out, Console.Out.Encoding, logFilePath);
|
||||
}
|
||||
|
||||
private static void TaskMode(TaskManager taskManager, Logger logger)
|
||||
|
Loading…
Reference in New Issue
Block a user