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