docs/current/ilog #58
Replies: 1 comment
-
这里关于使用自定义日志记录器,没有说清楚。 await service.SetupAsync(new TouchSocketConfig()
.SetListenIPHosts(7789)
.ConfigureContainer(a =>
{
a.AddLogger(new Mylog4netLogger()); //!!此处添加自定义日志实现
})
.ConfigurePlugins(a =>
{
//a.Add();
})); 使用方法: public class ApiServer : RpcServer
{
private readonly ILog logger;
public ApiServer(ILog m_logger)
{
this.logger = m_logger;
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
docs/current/ilog
定义
https://touchsocket.net/docs/current/ilog
Beta Was this translation helpful? Give feedback.
All reactions