EasyLogger(ActionLogLevel, Object, String, Exception) 构造函数
一个简单的委托日志
命名空间: TouchSocket.Core程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
public EasyLogger(
Action<LogLevel, Object, string, Exception> action
)
Public Sub New (
action As Action(Of LogLevel, Object, String, Exception)
)
new :
action : Action<LogLevel, Object, string, Exception> -> EasyLogger
参数
- action ActionLogLevel, Object, String, Exception
- 参数依次为:日志类型,触发源,消息,异常