Class: Snapcrawl::PrettyLogger

Inherits:
Object
  • Object
show all
Extended by:
LogHelpers
Defined in:
lib/snapcrawl/pretty_logger.rb

Constant Summary

Constants included from LogHelpers

LogHelpers::SEVERITY_COLORS

Class Method Summary collapse

Methods included from LogHelpers

actual_colors, colors?, empty_colors, log_colors, log_colors!, log_formatter, tty?

Class Method Details

.newObject



7
8
9
# File 'lib/snapcrawl/pretty_logger.rb', line 7

def self.new
  Logger.new(STDOUT, formatter: log_formatter, level: Config.log_level)
end