class Vagrant::Util::LoggingFormatter
Wrapper for logging formatting to provide information scrubbing prior to being written to output target
Attributes
formatter[R]
@return [Log4r::PatternFormatter]
Public Class Methods
new(formatter)
click to toggle source
Creates a new formatter wrapper instance.
@param [Log4r::Formatter]
# File lib/vagrant/util/logging_formatter.rb, line 16 def initialize(formatter) @formatter = formatter end
Public Instance Methods
format(event)
click to toggle source
Format event and scrub output
# File lib/vagrant/util/logging_formatter.rb, line 21 def format(event) msg = formatter.format(event) CredentialScrubber.desensitize(msg) end