From cfdfd32154b5a7e79d2c1e125f76b713344883ed Mon Sep 17 00:00:00 2001 From: rbezlepk Date: Thu, 3 Mar 2016 15:41:57 -0800 Subject: [PATCH] Add log4net configuration example --- Carbonator/App.config | 27 ++++++++++++++++++++++++++- Carbonator/Log.cs | 2 ++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/Carbonator/App.config b/Carbonator/App.config index 652b043..7cdf583 100644 --- a/Carbonator/App.config +++ b/Carbonator/App.config @@ -2,6 +2,7 @@
+
- + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Carbonator/Log.cs b/Carbonator/Log.cs index da1104e..ee6402e 100644 --- a/Carbonator/Log.cs +++ b/Carbonator/Log.cs @@ -1,5 +1,6 @@ using Crypton.Carbonator.Config; using log4net; +using log4net.Config; using System; using System.Collections.Generic; using System.Diagnostics; @@ -42,6 +43,7 @@ static Log() if (type == Types.Log4Net) { + XmlConfigurator.Configure(); log4net = LogManager.GetLogger(typeof(Log)); } }