summaryrefslogtreecommitdiff
path: root/src/Notepad/Infrastructure/Logging/Log4NetLogging/Log4NetLogger.cs
blob: 5111622f31a8f056cb55d726dc22dd53da031f00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System;
using log4net;

namespace Notepad.Infrastructure.Logging.Log4NetLogging {
    public class Log4NetLogger : ILogger {
        private readonly ILog log;

        public Log4NetLogger(ILog log) {
            this.log = log;
        }

        public void Informational(string formattedString, params object[] arguments) {
            log.InfoFormat(formattedString, arguments);
        }

        public void Error(Exception e) {
            log.Error(e.ToString());
        }
    }
}