namespace IStation.Application
{
///
///
///
public class Log
{
///
/// 写入信息日志
///
///
public static void Info(string info)
{
Yw.LogHelper.Info(GetLogInfo(info));
}
///
/// 写入调试日志
///
///
public static void Debug(string info)
{
Yw.LogHelper.Debug(GetLogInfo(info));
}
///
/// 写入错误日志
///
///
///
public static void Error(string info, Exception ex = null)
{
Yw.LogHelper.Error(GetLogInfo(info), ex);
}
private static string GetLogInfo(string info)
{
return $"{info}";
}
}
}