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

32 Коммитов

Автор 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
Samuel Williams 7ab4820af7 [ruby/logger] Only assign to `@filename` if the path is valid.
(https://github.com/ruby/logger/pull/81)

https://github.com/ruby/logger/commit/b41d7c699c
2022-12-08 03:28:18 +00:00
Samuel Williams 701251c576 [ruby/logger] Drop RDoc development dependency to avoid CI failures.
(https://github.com/ruby/logger/pull/82)

https://github.com/ruby/logger/commit/8915627234
2022-12-08 03:21:40 +00:00
Hiroshi SHIBATA 8a5dffe513 [ruby/logger] Bump version to 1.5.2
https://github.com/ruby/logger/commit/9c4ae3b81d
2022-12-05 06:36:31 +00:00
BurdetteLamar 90d8b7219e [ruby/logger] Enhanced RDoc for Logger
https://github.com/ruby/logger/commit/16556d06d1
2022-05-13 22:52:53 +09: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
Hiroshi SHIBATA fadc7a150c [ruby/logger] bump version to 1.5.1
https://github.com/ruby/logger/commit/c4a4155ab7
2022-03-17 17:28:33 +09:00
Jesse Chavez 99d02caed3 [ruby/logger] Fix log rotation inter-process lock failed.
Issue only occurs in JRuby 9.3.0.0 and Windows and the full
console output is:

log rotation inter-process lock failed. D:\log.txt -> D:\log.txt.0: The process cannot access the file because it is being used by another process.
log writing failed. closed stream
log writing failed. closed stream
...

https://github.com/ruby/logger/commit/19fc734638
2022-01-27 12:33:06 +09:00
Hiroshi SHIBATA e22c8e63e1 [ruby/logger] Bump version to 1.5.0
https://github.com/ruby/logger/commit/cdeddb2f67
2021-12-20 18:01:50 +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
Hiroshi SHIBATA de68de87ea [ruby/logger] Bump up logger version to 1.4.4
https://github.com/ruby/logger/commit/82a59c8d3f
2021-10-19 21:08:48 +09:00
Olle Jonsson f77f9b9328
[ruby/logger] gemspec: Drop unused "executables" configuration
This gem exposes 0 executables.

https://github.com/ruby/logger/commit/fbd9315393
2021-09-15 08:49:23 +09:00
Hiroshi SHIBATA 9b9cbbbc17
Update library versions of the default gems.
They are followed up with
  8fb02b7a97
2020-12-22 21:45:28 +09:00
Jeremy Evans 6f14a30022 [ruby/logger] Consider cygwin a Windows platform
This should fix Ruby Bug 12468.

https://github.com/ruby/logger/commit/49de53d1fc
2020-12-04 20:16:00 +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
Hiroshi SHIBATA 8fb02b7a97
Update the license for the default gems to dual licenses 2020-08-18 20:26:39 +09:00
Takashi Kokubun 7da11ed738
Suppress security alerts
https://github.com/advisories/GHSA-jppv-gw3r-w3q8
2020-02-28 21:05:08 -08:00
Hiroshi SHIBATA 95f570d0d3 [ruby/logger] bump version to 1.4.2
https://github.com/ruby/logger/commit/d6c01cc652
2019-12-10 21:03:36 +09:00
Jeremy Evans 38722fa179 [ruby/logger] Raise ArgumentError for invalid shift_age
Consider 'now' and 'everytime' as valid values for the previous
behavior of rotating everytime.

Fixes Ruby Bug 15977

https://github.com/ruby/logger/commit/f92979a376
2019-12-10 20:59:02 +09:00
Hiroshi SHIBATA 4b36832ba6
Merge the upstream changes for test-unit on ruby/logger.
This commits are based with:
    f067f7d1aa
    86058f420d
    02db6e8ed8
2019-12-09 19:17:32 +09:00
sonots ff7cc0dc34
[ruby/logger] 1.4.1
https://github.com/ruby/logger/commit/5987f518d1
2019-12-09 19:17:32 +09:00
Hiroshi SHIBATA 895f86c81b
[ruby/logger] Fixes #38
https://github.com/ruby/logger/commit/31efbb29ff
2019-12-09 19:17:31 +09:00
sonots 0fe1b05082
[ruby/logger] 1.4.0
https://github.com/ruby/logger/commit/8127ce0b56
2019-12-09 19:17:31 +09: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
Hiroshi SHIBATA 036039c8a2
Fixed LoadError of version file. 2019-07-15 14:45:30 +09:00
Hiroshi SHIBATA 0eafa1dce8
Fixed inconsitency locations of default gems. 2019-07-15 14:43:08 +09:00
Rafael Mendonça França 58065b8701
[ruby/logger] Add option to set the binary mode of the log device
Without binmode strings with incompatible encoding can't be written in
the file. This is very common in applications that log user provided
parameters.

We need to allow changing the binnary mode because right now it is impossible to use
the built-in log rotation feature when you provide a File object to the
LogDevice, and if you provide a filename you can't have binmode.

https://github.com/ruby/logger/commit/9114b3ac7e
2019-07-15 14:43:08 +09:00
Jeremy Evans f4064a0a0c
[ruby/logger] Set filename when initializing logger with a File object
This should allow reopen to work.  Requested in ruby issue #14595.

https://github.com/ruby/logger/commit/bd367aff12
2019-07-15 14:43:08 +09:00
Samuel Williams 3fdb963827
[ruby/logger] Prefer require_relative, it's a little bit faster.
https://github.com/ruby/logger/commit/1e2aab4bea
2019-07-15 14:43:07 +09:00
sonots 7f10da9d27
[ruby/logger] require 'logger/errors' just for compat
https://github.com/ruby/logger/commit/255a51dc10
2019-07-15 14:43:07 +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