Skip to content

Commit

Permalink
Updated signatures for new NLog methods
Browse files Browse the repository at this point in the history
  • Loading branch information
phatboyg committed Dec 11, 2015
1 parent bf44dfe commit d53be18
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/Topshelf.NLog/Logging/NLogLogWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ public void Log(LoggingLevel level, object obj)

public void Log(LoggingLevel level, object obj, Exception exception)
{
_log.Log(GetNLogLevel(level), obj == null
? ""
: obj.ToString(), exception);
_log.Log(GetNLogLevel(level), exception, obj == null
? ""
: obj.ToString());
}

public void Log(LoggingLevel level, LogWriterOutputProvider messageProvider)
Expand All @@ -95,9 +95,9 @@ public void Debug(object obj)

public void Debug(object obj, Exception exception)
{
_log.Log(LogLevel.Debug, obj == null
? ""
: obj.ToString(), exception);
_log.Log(LogLevel.Debug, exception, obj == null
? ""
: obj.ToString());
}

public void Debug(LogWriterOutputProvider messageProvider)
Expand All @@ -112,9 +112,9 @@ public void Info(object obj)

public void Info(object obj, Exception exception)
{
_log.Log(LogLevel.Info, obj == null
? ""
: obj.ToString(), exception);
_log.Log(LogLevel.Info, exception, obj == null
? ""
: obj.ToString());
}

public void Info(LogWriterOutputProvider messageProvider)
Expand All @@ -129,9 +129,9 @@ public void Warn(object obj)

public void Warn(object obj, Exception exception)
{
_log.Log(LogLevel.Warn, obj == null
? ""
: obj.ToString(), exception);
_log.Log(LogLevel.Warn, exception, obj == null
? ""
: obj.ToString());
}

public void Warn(LogWriterOutputProvider messageProvider)
Expand All @@ -146,9 +146,9 @@ public void Error(object obj)

public void Error(object obj, Exception exception)
{
_log.Log(LogLevel.Error, obj == null
? ""
: obj.ToString(), exception);
_log.Log(LogLevel.Error, exception, obj == null
? ""
: obj.ToString());
}

public void Error(LogWriterOutputProvider messageProvider)
Expand All @@ -163,9 +163,9 @@ public void Fatal(object obj)

public void Fatal(object obj, Exception exception)
{
_log.Log(LogLevel.Fatal, obj == null
? ""
: obj.ToString(), exception);
_log.Log(LogLevel.Fatal, exception, obj == null
? ""
: obj.ToString());
}

public void Fatal(LogWriterOutputProvider messageProvider)
Expand Down

0 comments on commit d53be18

Please sign in to comment.