Пример #1
0
 public static void Reconfigure(ConsoleLoggerConfiguration config)
 {
     lock (console_lock)
     {
         replacement_static_config = config;
     }
 }
Пример #2
0
        public ConsoleLogger(string name, ConsoleLoggerConfiguration config)
        {
            _name   = name;
            _config = config;
            static_config ??= config;

            Id = new EventId(_config.EventId, _name);
        }
Пример #3
0
 public ConsoleLoggerConfiguration(ConsoleLoggerConfiguration other)
 {
     LogLevel         = other.LogLevel;
     EventId          = other.EventId;
     TimeStampFormat  = other.TimeStampFormat;
     TrimNames        = new List <string>(other.TrimNames);
     ReplaceNames     = new Dictionary <string, string>(other.ReplaceNames);
     FormatterFactory = other.FormatterFactory;
     Token            = other.Token;
     Theme            = other.Theme;
     InternalLoggerQueueOverloadThreshold = other.InternalLoggerQueueOverloadThreshold;
     StringifyOption = other.StringifyOption;
 }
Пример #4
0
 public ConsoleLoggerProvider(ConsoleLoggerConfiguration config)
 {
     _config = config;
 }