mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-10 03:30:51 +08:00
添加属性依赖注入、添加自定义日志扩展
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.WebCore.LogExtend
|
||||
{
|
||||
public class CustomLoggerProvider : ILoggerProvider
|
||||
{
|
||||
//创建我们自定义日志的方法
|
||||
public ILogger CreateLogger(string categoryName)
|
||||
{
|
||||
return new CustomLogger();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user