Sha256: b061a35db148a592aa7cede1c7b2d8b0ba39213e735660a8a6953e20ee9c4af0
Contents?: true
Size: 340 Bytes
Versions: 6
Compression:
Stored size: 340 Bytes
Contents
require 'logger' module ErbAsterisk module Log private def log_init(verbose) @log = Logger.new(STDOUT) @log.level = verbose ? Logger::DEBUG : Logger::WARN end def log_debug(msg, level = 0) @log.debug { "#{' ' * level}#{msg}" } end def log_warn(msg) @log.warn { msg } end end end
Version data entries
6 entries across 6 versions & 1 rubygems