Created
October 21, 2012 02:54
-
-
Save taylorc/3925537 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Reflection; | |
using log4net; | |
namespace BasilBee.Infrastructure.Logging { | |
public class LoggingService : ILoggingService | |
{ | |
// ReSharper disable InconsistentNaming | |
private static readonly ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | |
// ReSharper restore InconsistentNaming | |
public void LogInfo(string message) | |
{ | |
log.Info(message); | |
} | |
public void LogInfoFormat(string format, object[] args) { | |
log.InfoFormat(format, args); | |
} | |
public void Error(string message) { | |
log.Error(message); | |
} | |
public void ErrorFormat(string format, object[] args) { | |
log.ErrorFormat(format,args); | |
} | |
public void Fatal(string message) { | |
log.Fatal(message); | |
} | |
public void FatalFormat(string format, object[] args) | |
{ | |
log.FatalFormat(format,args); | |
} | |
public void Warn(string message) { | |
log.Warn(message); | |
} | |
public void WarnFormat(string format, object[] args) | |
{ | |
log.WarnFormat(format,args); | |
} | |
public void Debug(string message) { | |
log.Debug(message); | |
} | |
public void DebugFormat(string format, object[] args) | |
{ | |
log.DebugFormat(format,args); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment