Skip to content

Instantly share code, notes, and snippets.

Last active January 8, 2020 14:26
Show Gist options
  • Save retohugi/faa2dffcbddafb1208dca85592de2e2d to your computer and use it in GitHub Desktop.
Save retohugi/faa2dffcbddafb1208dca85592de2e2d to your computer and use it in GitHub Desktop.
Sample configuration to enable UDP log output stream in Sitecore. This file is copy and paste ready :)
<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:patch=""
This configuration enables log output streams to UDP on port 7071, which is the default
port for Log2Console. You can download Log2Console from: (in the Source code zip, in the ./output folder)
Alternatively you can get a copy of Log4View from
Read more details on the 2 tools:
<!-- Remove the Role if you're not on Sitecore 9 or higher -->
<sitecore role:require="Standalone">
<!-- Change this back to INFO, for default log output. -->
<priority value="DEBUG" />
<!--Register the UDP appender for default log output -->
<appender-ref ref="UdpAppender" />
<!-- UDP Appender Configuration -->
<appender name="UdpAppender" type="log4net.Appender.UdpAppender, Sitecore.Logging">
<remoteAddress value="" />
<remotePort value="7071" />
<layout type="log4net.Layout.XmlLayoutSchemaLog4j" />
<!-- Register the UDP Appender with additionally registered loggers (in Sitecore) -->
<logger name="Sitecore.Diagnostics.Publishing">
<appender-ref ref="UdpAppender"/>
<logger name="ClientRoot">
<appender-ref ref="UdpAppender"/>
<logger name="Sitecore.Diagnostics.Search">
<appender-ref ref="UdpAppender"/>
<logger name="Sitecore.Diagnostics.Crawling">
<appender-ref ref="UdpAppender"/>
<logger name="Sitecore.Owin.Diagnostics">
<appender-ref ref="UdpAppender"/>
<logger name="Sitecore.Analytics.Aggregation">
<appender-ref ref="UdpAppender"/>
<logger name="Sitecore.Xdb.Processing.ContactMerge.Logger">
<appender-ref ref="UdpAppender"/>
<logger name="Sitecore.FXM.Diagnostics">
<appender-ref ref="UdpAppender"/>
<logger name="Sitecore.EDS">
<appender-ref ref="UdpAppender"/>
<logger name="Sitecore.EXM">
<appender-ref ref="UdpAppender"/>
<!-- Register the UDP Appender with SPE -->
<logger name="Cognifide.PowerShell">
<appender-ref ref="UdpAppender"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment