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 }; }
/// <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, }); }
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}"; }
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}"; }
public ConsoleLogger(Type type, LoggingColors loggingColors, ConsoleLoggerFactory factory) { this.type = type; this.loggingColors = loggingColors; this.factory = factory; }
/// <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}); }