GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — NLog NLog
Damian Hickey edited this page
namespace EventStore.Logging.NLog { using System; using global::NLog; using global::NLog.Config; public class NLogLogger : ILog { private static readonly LogFactory Factory = new LogFactory(); private readonly Logger log; public NLogLogger(Type typeToLog) { this.log = Factory.GetLogger(typeToLog.FullName); } public NLogLogger(Type typeToLog, LoggingConfiguration configuration) { this.log = new LogFactory(configuration).GetLogger(typeToLog.FullName); } public virtual void Verbose(string message, params object[] values) { if (this.log.IsTraceEnabled) this.log.Trace(message, values); } public virtual void Debug(string message, params object[] values) { if (this.log.IsDebugEnabled) this.log.Debug(message, values); } public virtual void Info(string message, params object[] values) { if (this.log.IsInfoEnabled) this.log.Info(message, values); } public virtual void Warn(string message, params object[] values) { if (this.log.IsWarnEnabled) this.log.Warn(message, values); } public virtual void Error(string message, params object[] values) { if (this.log.IsErrorEnabled) this.log.Error(message, values); } public virtual void Fatal(string message, params object[] values) { if (this.log.IsFatalEnabled) this.log.Fatal(message, values); } } } Clone this wiki locally |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |