Esempio n. 1
0
 public ConsoleLogger(Type type, bool colored, LoggingColors loggingColors, LogLevel minLevel)
 {
     this.type = type;
     this.colored = colored;
     this.loggingColors = loggingColors;
     this.minLevel = minLevel;
 }
 /// <summary>
 /// Use colored console stdout for logging (probably only useful for debugging and test scenarios)
 /// and allow the colors to be customized
 /// </summary>
 public static void ColoredConsole(this LoggingConfigurer configurer, LoggingColors colors)
 {
     configurer.Use(new ConsoleLoggerFactory(colored: true)
     {
         Colors = colors
     });
 }
 /// <summary>
 /// Use colored console stdout for logging (probably only useful for debugging and test scenarios)
 /// and allow the colors to be customized
 /// </summary>
 public static void ColoredConsole(this LoggingConfigurer configurer, LoggingColors colors)
 {
     RebusLoggerFactory.Current = new ConsoleLoggerFactory(colored: true)
     {
         Colors = colors
     };
 }
Esempio n. 4
0
 /// <summary>
 /// Use colored console stdout for logging (probably only useful for debugging and test scenarios)
 /// and allow the colors to be customized
 /// </summary>
 public static void ColoredConsole(this LoggingConfigurer configurer, LoggingColors colors, LogLevel minLevel)
 {
     configurer.Use(new ConsoleLoggerFactory(colored: true)
         {
             Colors = colors,
             MinLevel = minLevel,
         });
 }
 /// <summary>
 /// Use colored console stdout for logging (probably only useful for debugging and test scenarios)
 /// and allow the colors to be customized
 /// </summary>
 public static void ColoredConsole(this LoggingConfigurer configurer, LoggingColors colors, LogLevel minLevel)
 {
     configurer.Use(new ConsoleLoggerFactory(colored: true)
     {
         Colors   = colors,
         MinLevel = minLevel,
     });
 }
Esempio n. 6
0
            public ConsoleLogger(Type type, LoggingColors loggingColors, ConsoleLoggerFactory factory, bool showTimestamps)
            {
                this.type          = type;
                this.loggingColors = loggingColors;
                this.factory       = factory;

                logLineFormatString = showTimestamps
                                          ? "{0} {1} {2} ({3}): {4}"
                                          : "{1} {2} ({3}): {4}";
            }
Esempio n. 7
0
            public ConsoleLogger(Type type, LoggingColors loggingColors, ConsoleLoggerFactory factory, bool showTimestamps)
            {
                _type = type;
                _loggingColors = loggingColors;
                _factory = factory;

                _logLineFormatString = showTimestamps
                                          ? "{0} {1} {2} ({3}): {4}"
                                          : "{1} {2} ({3}): {4}";
            }
Esempio n. 8
0
 public ConsoleLogger(Type type, LoggingColors loggingColors, ConsoleLoggerFactory factory)
 {
     this.type = type;
     this.loggingColors = loggingColors;
     this.factory = factory;
 }
Esempio n. 9
0
 /// <summary>
 /// Use colored console stdout for logging (probably only useful for debugging and test scenarios)
 /// and allow the colors to be customized
 /// </summary>
 public static void ColoredConsole(this LoggingConfigurer configurer, LoggingColors colors)
 {
     configurer.Use(new ConsoleLoggerFactory(colored: true) {Colors = colors});
 }
Esempio n. 10
0
 public ConsoleLogger(Type type, LoggingColors loggingColors, ConsoleLoggerFactory factory)
 {
     this.type          = type;
     this.loggingColors = loggingColors;
     this.factory       = factory;
 }