Add logging functionality with ILogger interface and implementations
This commit is contained in:
22
GameCore/Logging/NullLogger.cs
Normal file
22
GameCore/Logging/NullLogger.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using GameCore.Logging.Interfaces;
|
||||
|
||||
namespace GameCore.Logging;
|
||||
|
||||
public class NullLogger : ILogger
|
||||
{
|
||||
public void Debug(string message)
|
||||
{
|
||||
}
|
||||
|
||||
public void Info(string message)
|
||||
{
|
||||
}
|
||||
|
||||
public void Warn(string message)
|
||||
{
|
||||
}
|
||||
|
||||
public void Error(string message, Exception ex = null)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user