warnings fixed

This commit is contained in:
2023-02-24 20:51:23 +06:00
parent d7a699f8d1
commit 148ad19fae
6 changed files with 15 additions and 10 deletions

View File

@@ -4,12 +4,10 @@ namespace DTLib.Logging.DependencyInjection;
public class LoggerService<TCaller> : ServiceDescriptor
{
DTLib.Logging.New.ILogger _logger;
// ReSharper disable once RedundantNameQualifier
public LoggerService(DTLib.Logging.New.ILogger logger) : base(
typeof(Microsoft.Extensions.Logging.ILogger<TCaller>),
new MyLoggerWrapper<TCaller>(logger))
{
_logger = logger;
}
}

View File

@@ -1,5 +1,6 @@
using DTLib.Logging.New;
using Microsoft.Extensions.Logging;
// ReSharper disable RedundantNameQualifier
namespace DTLib.Logging.DependencyInjection;

View File

@@ -27,7 +27,7 @@ public class DefaultLogFormat : ILogFormat
sb.Append('[').Append(severity.ToString()).Append(']');
if (sb.Length != 0)
sb.Append(": ");
sb.Append(message.ToString());
sb.Append(message);
sb.Append('\n');
return sb.ToString();
}