b0VIM 7.4"U-xdanhac~dan/dev/gems/micrologger/lib/micrologger.rbutf-8 3210#"! Utp2ad 2[/(HBA  L C 0 ( " !   x * "   end end "#{extra[:time].strftime('%Y-%m-%d %H:%M')} | #{extra[:level]} | #{message}" def formatter(message, extra) end end raise ArgumentError, "no suitable handler found for #{handler.inspect}" else default_handler elsif default_handler = DEFAULT_HANDLERS[handler] handler if handler.is_a?(Proc) def resolve_handler(handler) private end end unbind level else unbind level, &resolve_handler(handler || block) if handler || block def unregister(level = :info, handler = nil, &block) end bind level, &resolve_handler(handler || block) def register(level = :info, handler = nil, &block) end trigger level, message, {level: level, time: Time.now}.merge(extra) def log(message, level = :info, extra = {}) } }, STDERR.puts Paint[formatter(message, extra), :red] stderr: lambda{ |message, extra| }, STDOUT.puts formatter(message, extra) stdout: lambda{ |message, extra| DEFAULT_HANDLERS = { VERSION = "0.1.0".freeze include MicroEventclass MicroLoggerrequire 'paint'require 'microevent'