Sha256: 65f712afe93cf113bdac8557d7f295c9c85bf86116803633108fd1b14f8c5d46

Contents?: true

Size: 992 Bytes

Versions: 59

Compression:

Stored size: 992 Bytes

Contents

%a{annotate:rdoc:skip}
class Logger
  # <!-- rdoc-file=lib/logger/formatter.rb -->
  # Default formatter for log messages.
  #
  class Formatter
    public

    attr_accessor datetime_format: String?

    # <!--
    #   rdoc-file=lib/logger/formatter.rb
    #   - call(severity, time, progname, msg)
    # -->
    #
    def call: (String severity, Time time, untyped progname, untyped msg) -> String

    private

    # <!--
    #   rdoc-file=lib/logger/formatter.rb
    #   - format_datetime(time)
    # -->
    #
    def format_datetime: (Time time) -> untyped

    # <!--
    #   rdoc-file=lib/logger/formatter.rb
    #   - new()
    # -->
    #
    def initialize: () -> void

    # <!--
    #   rdoc-file=lib/logger/formatter.rb
    #   - msg2str(msg)
    # -->
    #
    def msg2str: (String | Exception | untyped msg) -> String
  end

  interface _Formatter
    def call: (String severity, Time time, untyped progname, untyped msg) -> _ToS
  end
end

Logger::Formatter::Format: String

Version data entries

59 entries across 59 versions & 2 rubygems

Version Path
rbs-3.6.0.pre.2 stdlib/logger/0/formatter.rbs
rbs-3.6.0.pre.1 stdlib/logger/0/formatter.rbs
rbs-3.6.0.dev.1 stdlib/logger/0/formatter.rbs
rbs-3.5.3 stdlib/logger/0/formatter.rbs
rbs-3.5.2 stdlib/logger/0/formatter.rbs
rbs-3.5.1 stdlib/logger/0/formatter.rbs
rbs-3.5.1.pre.1 stdlib/logger/0/formatter.rbs
rbs-3.5.0 stdlib/logger/0/formatter.rbs
rbs-3.5.0.pre.2 stdlib/logger/0/formatter.rbs
rbs-3.5.0.pre.1 stdlib/logger/0/formatter.rbs
rbs-3.4.4 stdlib/logger/0/formatter.rbs
rbs-3.4.3 stdlib/logger/0/formatter.rbs
rbs-3.4.2 stdlib/logger/0/formatter.rbs
getargv-0.3.3-universal-darwin vendor/bundle/ruby/3.3.0/gems/rbs-2.8.4/stdlib/logger/0/formatter.rbs
rbs-3.4.1 stdlib/logger/0/formatter.rbs
rbs-3.4.0 stdlib/logger/0/formatter.rbs
rbs-3.4.0.pre.1 stdlib/logger/0/formatter.rbs
rbs-3.3.2 stdlib/logger/0/formatter.rbs
rbs-3.3.1 stdlib/logger/0/formatter.rbs
rbs-3.3.0 stdlib/logger/0/formatter.rbs