using System;
namespace YOLODetectProcessLib
{
///
/// log类型
///
public enum EnumLogType
{
InfoLog,
WarnLog,
ErrorLog,
FatalLog,
}
///
/// 有log要写
///
public class LogWriteEventArgs : EventArgs
{
///
/// log的类型
///
public EnumLogType LogType { get; }
///
/// log的内容
///
public string Msg { get; }
///
/// 构造函数
///
///
///
public LogWriteEventArgs(EnumLogType logType, params string[] logs)
{
LogType = logType;
string msg = string.Join("\n", logs);
Msg = msg;
}
}
}