lib/banana/logger.rb
# Enables the given `level` or the logger generally if no `level` is given.
# If the logger is disabled no messages will be printed. If it is enabled
# only messages for enabled log levels will be printed.
#
# @param [Symbol, String] level Loglevel to enable.
Enables the given `level` or the logger generally if no `level` is given.
If the logger is disabled no messages will be printed. If it is enabled
only messages for enabled log levels will be printed.
Enables the given ` level ` or the logger generally if no ` level ` is given . If the logger is disabled no messages will be printed . If it is enabled only messages for enabled log levels will be printed .
def enable level = nil
      if level.nil?
        @enabled = true
      else
        @levels[level.to_sym][:enabled] = true
      end
    end
def enable level = nil if level . nil? @enabled = true else @levels [ level . to_sym ] [ :enabled ] = true end end
Enables the given `level` or the logger generally if no `level` is given.
Enables the given ` level ` or the logger generally if no ` level ` is given .
level
<not_specific>
<not_specific>
level Loglevel to enable.
level Loglevel to enable .