mirror of
https://github.com/C9Glax/tranga.git
synced 2025-06-23 11:34:16 +02:00
@ -8,6 +8,7 @@ public class Logger : TextWriter
|
||||
private static readonly string LogDirectoryPath = RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
|
||||
? "/var/log/tranga-api"
|
||||
: Path.Join(Directory.GetCurrentDirectory(), "logs");
|
||||
public string? logFilePath => _fileLogger?.logFilePath;
|
||||
public override Encoding Encoding { get; }
|
||||
public enum LoggerType
|
||||
{
|
||||
@ -69,4 +70,9 @@ public class Logger : TextWriter
|
||||
{
|
||||
return _memoryLogger.GetNewLines();
|
||||
}
|
||||
|
||||
public string[] GetLog()
|
||||
{
|
||||
return _memoryLogger.GetLogMessages();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user