Fix msg
This commit is contained in:
parent
d0272b5761
commit
3ec20d05d3
2 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,7 @@
|
|||
namespace Xorog.Logger;
|
||||
|
||||
#pragma warning disable IDE1006 // Naming Styles
|
||||
|
||||
public class Logger : ILogger
|
||||
{
|
||||
internal Logger() { }
|
||||
|
|
@ -128,7 +130,7 @@ public class Logger : ILogger
|
|||
Console.ResetColor(); Console.WriteLine($" {LogMessage}");
|
||||
|
||||
if (currentLog.Exception is not null)
|
||||
Console.WriteLine(currentLog.Exception.ToString());
|
||||
Console.WriteLine(currentLog.Exception);
|
||||
}
|
||||
|
||||
_ = Task.Run(() =>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
#pragma warning disable IDE1006 // Naming Styles
|
||||
namespace Xorog.Logger;
|
||||
public class LoggerProvider : ILoggerProvider
|
||||
{
|
||||
|
|
@ -14,6 +14,7 @@ public class LoggerProvider : ILoggerProvider
|
|||
_logger = logger;
|
||||
}
|
||||
|
||||
|
||||
private Logger _logger { get; set; }
|
||||
|
||||
public ILogger CreateLogger(string categoryName)
|
||||
|
|
|
|||
Reference in a new issue