You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.6 KiB

1 month ago
using Sog;
namespace BillLog
{
public class BDCLogSvrCfg
{
public string endPoint;
public string accesskeyID;
public string accessKeySecret;
public string logProject;
public string logStoreServer;
public string appKey;
public string Bdcplatform;
// bdc日志开关
public int isBdcOpen;
//工作线程一次合并上报日志的最大数量
public int logsMaxNum;
//不足一批最大数量的时候最多等待时间,毫秒
public int waitTimeMsWhenNotEnoughLog;
//任务线程数
public int TaskThreadCount;
//bdc日志过滤类型
public int[] FilterLogEventIds;
}
public class BillLogPaths
{
public string bill;
public string bdc;
public string bdcCli;
public string ta;
public string taCli;
public string taFilter;
}
public class LogTransferCfg
{
public int intervalDay = 30;//默认30天
public string transferPath; //转移到哪个目录
public string[] transferLogs; //哪些日志需要转移(和 BillLogPaths 对应)
}
public class TaLogCfg
{
public bool isOpenFilter; //是否开启事件过滤
public string[] filterEvents; //过滤事件
}
public class BillLogServerConfig
{
public BDCLogSvrCfg bdcCfg;
public int isTALogOpen;
public BillLogPaths logpatchs;
public LogTransferCfg logTransfer;
public TaLogCfg taCfg;
public string configFile;
}
}