Граф коммитов

7 Коммитов

Автор SHA1 Сообщение Дата
Akira Matsuda 7e121dc4a8 [ruby/logger] Another performance improvement on the Formatter by
using Kernel#sprintf over String#%
(https://github.com/ruby/logger/pull/75)

* Prefer Kernel#sprintf over String#% for formatting Strings
2022-12-08 03:31:36 +00:00
Akira Matsuda 0b62535219 [ruby/logger] Prefer String#[0, 1] over [0..0]
[0..0] internally creates an extra Array object, and so is slower and much more memory consuming

https://github.com/ruby/logger/commit/20616ad34a
2022-05-05 19:09:49 +09:00
Baron Bloomer a8b11b5cdd
[ruby/logger] Changes to datetime formatting
Formatting a datetime should only pertain to itself and valid datetimes do not contain a space. Should there be a desire to show show a space between the datetime and the process pid in the formatted log, this formatting logic should take place there.
Furthermore, the default datetime format is moved to a class variable to allowing this variable to be overwritten by subclasses.

https://github.com/ruby/logger/commit/7cbd434349
2021-12-18 08:38:57 +09:00
Maciej Mensfeld 0fb1a67bda Reference process PID using the Process#pid
This change will allow formatter to run from Ractors other than main.
2020-09-29 11:50:46 -07:00
Akira Matsuda 6158e28f8d
[ruby/logger] Avoid creating [] and "" when logging an Exception that has no backtrace
https://github.com/ruby/logger/commit/75fd308053
2019-12-09 19:17:31 +09:00
sonots 0aafc32995
[ruby/logger] frozen_string_literal: true
https://github.com/ruby/logger/commit/a057eede7b
2019-12-09 19:17:31 +09:00
Colby Swandale bbe157f340
[ruby/logger] split logger classes/modules into separate files
https://github.com/ruby/logger/commit/f10ce9fff2
2019-07-15 14:43:07 +09:00