-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
66 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System; | ||
using System.Diagnostics; | ||
|
||
namespace NetCore8583; | ||
|
||
/// <summary> | ||
/// ILogger is an interface that will be implemented | ||
/// </summary> | ||
public interface ILogger | ||
{ | ||
/// <summary> | ||
/// Info log info message | ||
/// </summary> | ||
/// <param name="messageTemplate">the message template</param> | ||
void Info(string messageTemplate); | ||
|
||
/// <summary> | ||
/// Debug log in debug mode | ||
/// </summary> | ||
/// <param name="messageTemplate">the message template</param> | ||
void Debug(string messageTemplate); | ||
|
||
/// <summary> | ||
/// Warning logs message in warning mode | ||
/// </summary> | ||
/// <param name="messageTemplate">the message template</param> | ||
void Warning(string messageTemplate); | ||
|
||
/// <summary> | ||
/// Error log error message | ||
/// </summary> | ||
/// <param name="messageTemplate">the message template</param> | ||
void Error(string messageTemplate); | ||
|
||
/// <summary> | ||
/// Error log an Exception with a custom error message | ||
/// </summary> | ||
/// <param name="exception">the exception</param> | ||
/// <param name="messageTemplate">the message template</param> | ||
void Error(Exception exception, string messageTemplate); | ||
} |
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