AI OnAI Off
If I remember correctly the loggin abstraction was added in CMS 9, so you would need to upgrade to use a different logging solution
you can still use log4net to "capture" log entries coming from Episerver (as you cannot replace logging engine underneath) and have configured Udp appender to "forward" entries to Syslog.
Sample config below:
<appender name="UdpAppender" type="log4net.Appender.UdpAppender">
<param name="RemoteAddress" value="127.0.0.1" />
<param name="RemotePort" value="514" />
<layout type="log4net.Layout.PatternLayout, log4net">
<conversionPattern value="%-5level %logger [%property{NDC}] - %message%newline" />
</layout>
</appender>
@Valdis: I'm trying to make him upgrade here. it's for the best of everybody ;)
I am trying to replace the out of the box Log4Net logging in EPiServer with Syslog. I've got this working by following the guide under the heading 'Implementing the API' at the bottom of this page world.episerver.com/documentation/Items/Developers-Guide/Episerver-CMS/75/Logging/logging-api/ The last step says the following:
The Logging API currently only supports one logger type and the API will use the first factory type it can find when scanning assemblies. It is therefore recommended that you make sure that the EPiServer.Logging.Log4Net assembly is removed before deploying another implementation.
However, at the top of the page it says this:
Initially the EPiServer.CMS package will have a package dependency to EPiServer.Logging.Log4Net, which is the log4net implementation of the API to maintain compatibility and ease the transitioning. This dependency is planned to be removed as a part of a future update.
True enough I cannot remove the EPiServer.Logging.Log4Net from my solution as CMS Core (we're on 7.19.2) depends on it. Does this mean I cannot use a different Logging solution in EPiServer 7.5?