lib/banana/logger.rb
# Add additional log levels which are automatically enabled.
# @param [Hash] levels Log levels in the format `{ debug: "red" }`
Add additional log levels which are automatically enabled.
Add additional log levels which are automatically enabled .
def log_level levels = {}
      levels.each do |level, color|
        @levels[level.to_sym] ||= { enabled: true }
        @levels[level.to_sym][:color] = color
      end
    end
def log_level levels = { } levels . each do | level , color | @levels [ level . to_sym ] ||= { enabled : true } @levels [ level . to_sym ] [ :color ] = color end end
Add additional log levels which are automatically enabled.
Add additional log levels which are automatically enabled .
levels
<not_specific>
<not_specific>
levels Log levels in the format `{ debug: "red" }`
levels Log levels in the format ` { debug : " red " } `