Class: Logger::Formatter (Ruby 2.7.2)
Description: Class : Logger::Formatter - Ruby 2.7.2

### Home Classes Methods

### In Files

- logger/formatter.rb

### Parent

Object

### Methods

- ::new
- #call

### Class/Module Index

Quicksearch

- Logger
- Logger::Formatter
- Logger::LogDevice
- Logger::Period
- Logger::Severity

No matching classes.

# Logger::Formatter

Default formatter for log messages.

### Constants

Format

### Attributes

datetime_format[RW]

### Public Class Methods

new() click to toggle source

                   # File logger/formatter.rb, line 10
    def initialize
      @datetime_format = nil
    end

### Public Instance Methods

call(severity, time, progname, msg) click to toggle source

                   # File logger/formatter.rb, line 14
    def call(severity, time, progname, msg)
      Format % [severity[0..0], format_datetime(time), $$, severity, progname,
        msg2str(msg)]
    end