Ejemplo n.º 1
0
 /// <summary>
 /// 开始初始化数据日志
 /// </summary>
 /// <param name="config">数据日志配置信息</param>
 public virtual void Initialize(DataLoggingConfig config)
 {
     LoggingAdapterConfig adapterConfig = new LoggingAdapterConfig()
     {
         Enabled = config.Enabled,
         AdapterType = config.AdapterType
     };
     SetLoggingFromAdapterConfig(adapterConfig);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 初始化一个<see cref="LoggingConfig"/>类型的新实例
 /// </summary>
 public LoggingConfig()
 {
     EntryConfig        = new LoggingEntryConfig();
     DataLoggingConfig  = new DataLoggingConfig();
     BasicLoggingConfig = new BasicLoggingConfig();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 初始化一个<see cref="LoggingConfig"/>类型的新实例
 /// </summary>
 public LoggingConfig()
 {
     EntryConfig = new LoggingEntryConfig();
     DataLoggingConfig = new DataLoggingConfig();
     BasicLoggingConfig = new BasicLoggingConfig();
 }