【发布时间】:2021-08-20 13:16:26
【问题描述】:
我是第一次设置 nlog,并且有多个位置可以记录...这是我在 nlog 中的设置,但从未创建表?
<target xsi:type="Database"
name="DatabaseTarget"
keepConnection="true"
commandType="Text"
dbDatabase="IISLogging"
dbUserName="user"
dbPassword="password"
dbHost="111.111.11.1"
commandText="INSERT INTO [Log] (Logged,Level,LogMessage,Exception,StackTrace,Path,Json,Ip)
VALUES (@Logged, @Level, @Message, @Exception, @StackTrace,@Path,@Json,@Ip)">
【问题讨论】: