Sha256: d8b773de6a59f2549da263fadeead3908ebb79bc9716aeda33151b0a15522611
Contents?: true
Size: 734 Bytes
Versions: 42
Compression:
Stored size: 734 Bytes
Contents
require 'logger' module Vagrant module Util # Subclass of the standard library logger which has no format on # its own. The message sent to the logger is outputted as-is. class PlainLogger < ::Logger # This is the method which is called for all debug, info, error, # etc. methods by the logger. This is overriden to verify that # the output is always flushed. # # Logger by default syncs all log devices but this just verifies # it is truly flushed. def add(*args) super @logdev.dev.flush if @logdev end def format_message(level, time, progname, msg) # We do no formatting, its up to the user "#{msg}\n" end end end end
Version data entries
42 entries across 42 versions & 4 rubygems