Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Logger#datetime_format=

datetime_format=(datetime_format)

Set date-time format.

datetime_format

A string suitable for passing to strftime.

See also #datetime_format #debug #close #debug! also in 3.4 · 3.3 · 3.2 · 3.0