class Console::Terminal::Logger
def default_suffix(object = nil)
def default_suffix(object = nil) buffer = +"" if @verbose if annotation = Fiber.current.annotation # While typically annotations should be strings, that is not always the case. annotation = annotation.to_s # If the annotation is empty, we don't want to print it, as it will look like a formatting bug. if annotation.size > 0 buffer << ": #{@terminal[:annotation]}#{annotation}#{@terminal.reset}" end end end buffer << " #{@terminal[:logger_suffix]}" if object buffer << "[oid=0x#{object.object_id.to_s(16)}] " end buffer << "[ec=0x#{Fiber.current.object_id.to_s(16)}] [pid=#{Process.pid}] [#{::Time.now}]#{@terminal.reset}" return buffer end