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