示例#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
     };
 }
示例#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,
     });
 }
示例#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}";
            }
示例#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}";
            }
示例#8
0
 public ConsoleLogger(Type type, LoggingColors loggingColors, ConsoleLoggerFactory factory)
 {
     this.type = type;
     this.loggingColors = loggingColors;
     this.factory = factory;
 }
示例#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});
 }
示例#10
0
 public ConsoleLogger(Type type, LoggingColors loggingColors, ConsoleLoggerFactory factory)
 {
     this.type          = type;
     this.loggingColors = loggingColors;
     this.factory       = factory;
 }