Sha256: fd688a8344ea007ad8778c2c6eb91f5649e2b5ee74530b694d59f86e0e6746df
Contents?: true
Size: 620 Bytes
Versions: 9
Compression:
Stored size: 620 Bytes
Contents
require 'glib2' require "rabbit/logger/base" module Rabbit module Logger class STDERR include Base private def do_log(severity, prog_name, message) begin message = GLib.locale_from_utf8(message) rescue GLib::ConvertError format = _("can't convert to current locale from UTF-8: %s") ::STDERR.puts(format % message) end ::STDERR.puts(format_severity(severity)) ::STDERR.print("[#{prog_name}]: ") if prog_name ::STDERR.puts(message) exit if severity >= Severity::FATAL end end end end
Version data entries
9 entries across 9 versions & 1 rubygems