Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: LoggingService, dependency injection

$
0
0
Hi Janus

The logging we have is based on "logging application block" of MS Enterprice Library.

The logging class is taken from the configuration ~/App_Data/Composite/Composite.config (look for "loggingConfiguration" section), you can create your own log trace listener, by inheriting from Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.CustomTraceListener, and referencing it in the configuration file.

You can look at Composite.Plugins.Logging.LogTraceListeners.FileLogTraceListener.FileLogTraceListener as an example.

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>