Class: CemWinSpec::Logging::Formatter::FileFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/cem_win_spec/logging/formatter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFileFormatter

Returns a new instance of FileFormatter.



22
23
24
# File 'lib/cem_win_spec/logging/formatter.rb', line 22

def initialize
  @log_format = :file
end

Instance Attribute Details

#log_formatObject (readonly)

Returns the value of attribute log_format.



20
21
22
# File 'lib/cem_win_spec/logging/formatter.rb', line 20

def log_format
  @log_format
end

Instance Method Details

#getObject



26
27
28
29
30
# File 'lib/cem_win_spec/logging/formatter.rb', line 26

def get
  proc do |severity, datetime, progname, msg|
    format(severity, datetime, progname, msg)
  end
end