Class: CemAcpt::Logging::Formatter::FileFormatter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFileFormatter

Returns a new instance of FileFormatter.



26
27
28
# File 'lib/cem_acpt/logging/formatter.rb', line 26

def initialize
  @log_format = :file
end

Instance Attribute Details

#log_formatObject (readonly)

Returns the value of attribute log_format.



24
25
26
# File 'lib/cem_acpt/logging/formatter.rb', line 24

def log_format
  @log_format
end

Instance Method Details

#getObject



30
31
32
33
34
# File 'lib/cem_acpt/logging/formatter.rb', line 30

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