代码拉取完成,页面将自动刷新
Required Assemblies
- NLog.dll
- AnyLog.NLog.dll
- LogMaster4Net.NLogAdapter.dll
Server Configuration
<server name="LogMasterServer"
serverType="LogMaster4Net.MasterServer.LogMasterServer, LogMaster4Net.MasterServer"
ip="Any" port="2020" mode="Udp"
maxConnectionNumber="100"
clearIdleSession="true"
idleSessionTimeOut="3600"
clearIdleSessionInterval="600"
maxRequestLength="40960"
receiveBufferSize="40960"
loggingDeserializer="nlog">
</server>
Server Logging Configuration
\Config\nlog.config: the logging confuguration of the server self;
\Config\nlog.[LogAppName].Config : the logging configuration for your application whose name is [LogAppName]};
Application Setting
Logging Target Configuration
<target xsi:type="Network"
name="udp"
encoding="utf-8"
address="udp://127.0.0.1:2020"
layout="${log4jxmlevent:includeSourceInfo=true:includeCallSite=true:includeMDC=true:appInfo=[LogAppName]:includeNDC=true:includeNLogData=true}">
</target>
Set LogAppName
LogAppName is defined in the layout attribute of target configuration as the field "appInfo", please replace it to the value you want:
layout="${log4jxmlevent:includeSourceInfo=true:includeCallSite=true:includeMDC=true:appInfo=[LogAppName]:includeNDC=true:includeNLogData=true}"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。