main
1using System;
2using Gorilla.Commons.Infrastructure.Logging;
3using log4net;
4
5namespace gorilla.commons.infrastructure.thirdparty.Log4Net
6{
7 public class Log4NetLogger : Logger
8 {
9 readonly ILog log;
10
11 public Log4NetLogger(ILog log)
12 {
13 this.log = log;
14 }
15
16 public void informational(string formatted_string, params object[] arguments)
17 {
18 log.InfoFormat(formatted_string, arguments);
19 }
20
21 public void debug(string formatted_string, params object[] arguments)
22 {
23 log.DebugFormat(formatted_string, arguments);
24 }
25
26 public void error(Exception e)
27 {
28 log.Error(e.ToString());
29 }
30 }
31}