Shady nagy/net6 (#614)
* udated to .net6 * used the .net6 version RC2 * added editconfig. * App core new Scoped Namespaces style. * BlazorAdmin new Scoped Namespaces style. * Blazor Shared new Scoped Namespaces style. * Infra new Scoped Namespaces style. * public api new Scoped Namespaces style. * web new Scoped Namespaces style. * FunctionalTests new Scoped Namespaces style. * Integrational tests new Scoped Namespaces style. * unit tests new Scoped Namespaces style. * update github action. * update github action. * change the global.
This commit is contained in:
@@ -1,24 +1,23 @@
|
||||
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Microsoft.eShopWeb.Infrastructure.Logging
|
||||
namespace Microsoft.eShopWeb.Infrastructure.Logging;
|
||||
|
||||
public class LoggerAdapter<T> : IAppLogger<T>
|
||||
{
|
||||
public class LoggerAdapter<T> : IAppLogger<T>
|
||||
private readonly ILogger<T> _logger;
|
||||
public LoggerAdapter(ILoggerFactory loggerFactory)
|
||||
{
|
||||
private readonly ILogger<T> _logger;
|
||||
public LoggerAdapter(ILoggerFactory loggerFactory)
|
||||
{
|
||||
_logger = loggerFactory.CreateLogger<T>();
|
||||
}
|
||||
_logger = loggerFactory.CreateLogger<T>();
|
||||
}
|
||||
|
||||
public void LogWarning(string message, params object[] args)
|
||||
{
|
||||
_logger.LogWarning(message, args);
|
||||
}
|
||||
public void LogWarning(string message, params object[] args)
|
||||
{
|
||||
_logger.LogWarning(message, args);
|
||||
}
|
||||
|
||||
public void LogInformation(string message, params object[] args)
|
||||
{
|
||||
_logger.LogInformation(message, args);
|
||||
}
|
||||
public void LogInformation(string message, params object[] args)
|
||||
{
|
||||
_logger.LogInformation(message, args);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user