module KLog
Simple console log helpers
Log Helper is an internal class that takes care of a lot of the formatting of different content types e.g key/values, lines, progress counters and headings it is different to the formatter because the formatter is used by Rails Logger to change the output stream style and format
require_relative 'format_logger' require_relative 'format_logger_helper'
Constants
- VERSION
Attributes
logger[RW]
Public Class Methods
default_logger()
click to toggle source
# File lib/k_log.rb, line 20 def default_logger return @default_logger if defined? @default_logger @default_logger = begin logger = Logger.new($stdout) logger.level = Logger::DEBUG logger.formatter = KLog::LogFormatter.new KLog::LogUtil.new(logger) end end