using HMI.Core.Api;
|
|
namespace HMI.Core.Util
|
{
|
public class LoggerHelper
|
{
|
public static ILogWriter Logger { get; private set; }
|
|
public static void Register(ILogWriter logger)
|
{
|
if (Logger == null)
|
{
|
Logger = logger;
|
}
|
}
|
|
public static void Debug(string source, string content)
|
{
|
Logger?.Debug(source, content);
|
}
|
|
public static void Info(string source, string content)
|
{
|
Logger?.Info(source, content);
|
}
|
|
public static void Warn(string source, string content)
|
{
|
Logger?.Warn(source, content);
|
}
|
|
public static void Error(string source, string content)
|
{
|
Logger?.Error(source, content);
|
}
|
}
|
}
|