-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated ProducerConsumer to 0.2.0.49 [skip ci]
- Loading branch information
Showing
10 changed files
with
45 additions
and
45 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using Nybus.Configuration; | ||
using Nybus.Logging; | ||
|
||
namespace Consumer | ||
{ | ||
public class ConsoleLogger : ILogger | ||
public class ConsoleLogger : LoggerBase | ||
{ | ||
public Task LogAsync(LogLevel level, string message, object data = null) | ||
{ | ||
Log(level, message, data); | ||
return Task.FromResult(0); | ||
} | ||
|
||
public void Log(LogLevel level, string message, object data = null) | ||
protected override Task LogEvent(LogLevel level, string message, object data, string callerMemberName) | ||
{ | ||
Console.WriteLine($"\t{level:G} {message}"); | ||
|
||
return Task.CompletedTask; | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using Nybus.Configuration; | ||
using Nybus.Logging; | ||
|
||
namespace Producer | ||
{ | ||
public class ConsoleLogger : ILogger | ||
public class ConsoleLogger : LoggerBase | ||
{ | ||
public Task LogAsync(LogLevel level, string message, object data = null) | ||
{ | ||
Log(level, message, data); | ||
return Task.FromResult(0); | ||
} | ||
|
||
public void Log(LogLevel level, string message, object data = null) | ||
protected override Task LogEvent(LogLevel level, string message, object data, string callerMemberName) | ||
{ | ||
Console.WriteLine($"\t{level:G} {message}"); | ||
|
||
return Task.CompletedTask; | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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