summaryrefslogtreecommitdiff
path: root/lib/logger/log_device.rb
AgeCommit message (Collapse)Author
2022-12-08[ruby/logger] Only assign to `@filename` if the path is valid.Samuel Williams
(https://github.com/ruby/logger/pull/81) https://github.com/ruby/logger/commit/b41d7c699c
2022-01-27[ruby/logger] Fix log rotation inter-process lock failed.Jesse Chavez
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
2020-12-04[ruby/logger] Consider cygwin a Windows platformJeremy Evans
This should fix Ruby Bug 12468. https://github.com/ruby/logger/commit/49de53d1fc
2019-12-09[ruby/logger] frozen_string_literal: truesonots
https://github.com/ruby/logger/commit/a057eede7b
2019-07-15[ruby/logger] Add option to set the binary mode of the log deviceRafael Mendonça França
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[ruby/logger] Set filename when initializing logger with a File objectJeremy Evans
This should allow reopen to work. Requested in ruby issue #14595. https://github.com/ruby/logger/commit/bd367aff12
2019-07-15[ruby/logger] Prefer require_relative, it's a little bit faster.Samuel Williams
https://github.com/ruby/logger/commit/1e2aab4bea
2019-07-15[ruby/logger] split logger classes/modules into separate filesColby Swandale
https://github.com/ruby/logger/commit/f10ce9fff2