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