<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/logger/log_device.rb, branch v3_4_9</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/logger] Use `__FILE__` for wasm</title>
<updated>2024-12-19T04:16:50+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-12-19T03:36:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d16b043cdd39d7ee8d9570798ef42cd9afc4a6f1'/>
<id>d16b043cdd39d7ee8d9570798ef42cd9afc4a6f1</id>
<content type='text'>
`/dev/null` is not available on wasm.

https://github.com/ruby/logger/commit/4be05c2208
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`/dev/null` is not available on wasm.

https://github.com/ruby/logger/commit/4be05c2208
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] Enable log file rotation on Windows</title>
<updated>2024-12-04T07:45:39+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-10-09T05:05:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=edd3977b4024c27b92a8e132b2762226298a475a'/>
<id>edd3977b4024c27b92a8e132b2762226298a475a</id>
<content type='text'>
Since ruby 2.3, a file opened with `File::SHARE_DELETE` and
`File::BINARY` can be renamed or removed.

https://github.com/ruby/logger/commit/7b6146fee6
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since ruby 2.3, a file opened with `File::SHARE_DELETE` and
`File::BINARY` can be renamed or removed.

https://github.com/ruby/logger/commit/7b6146fee6
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] Extract `Logger::LogDevice#handle_write_errors`</title>
<updated>2024-12-04T07:45:37+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-10-09T03:54:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ed47b6b32445107e870d8b1e9825141802fb8fdd'/>
<id>ed47b6b32445107e870d8b1e9825141802fb8fdd</id>
<content type='text'>
https://github.com/ruby/logger/commit/f904ad2f7c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/logger/commit/f904ad2f7c
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] Add reraise_write_errors keyword argument to Logger and LogDevice</title>
<updated>2024-07-11T15:25:17+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2019-08-16T16:12:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c698180e68a0f417415cd087efc303931af3bb3e'/>
<id>c698180e68a0f417415cd087efc303931af3bb3e</id>
<content type='text'>
This allows the user to specify exception classes to treat as regular
exceptions instead of being swallowed.  Among other things, it is
useful for having Logger work with Timeout.

Fixes Ruby Bug 9115.

https://github.com/ruby/logger/commit/436a7d680f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows the user to specify exception classes to treat as regular
exceptions instead of being swallowed.  Among other things, it is
useful for having Logger work with Timeout.

Fixes Ruby Bug 9115.

https://github.com/ruby/logger/commit/436a7d680f
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] Only assign to `@filename` if the path is valid.</title>
<updated>2022-12-08T03:28:18+00:00</updated>
<author>
<name>Samuel Williams</name>
<email>samuel.williams@oriontransfer.co.nz</email>
</author>
<published>2022-12-08T03:28:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7ab4820af7b39e12023ab3aee74cb7e66e97f786'/>
<id>7ab4820af7b39e12023ab3aee74cb7e66e97f786</id>
<content type='text'>
(https://github.com/ruby/logger/pull/81)

https://github.com/ruby/logger/commit/b41d7c699c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/logger/pull/81)

https://github.com/ruby/logger/commit/b41d7c699c
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] Fix log rotation inter-process lock failed.</title>
<updated>2022-01-27T03:33:06+00:00</updated>
<author>
<name>Jesse Chavez</name>
<email>jesse.chavez.r@gmail.com</email>
</author>
<published>2022-01-26T19:05:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=99d02caed3fb86a8bbe3ae6daddf2517e2f3f441'/>
<id>99d02caed3fb86a8bbe3ae6daddf2517e2f3f441</id>
<content type='text'>
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 -&gt; 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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 -&gt; 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
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] Consider cygwin a Windows platform</title>
<updated>2020-12-04T11:16:00+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2020-09-22T18:22:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6f14a30022e284398017b47d37f3f717f384f985'/>
<id>6f14a30022e284398017b47d37f3f717f384f985</id>
<content type='text'>
This should fix Ruby Bug 12468.

https://github.com/ruby/logger/commit/49de53d1fc
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This should fix Ruby Bug 12468.

https://github.com/ruby/logger/commit/49de53d1fc
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] frozen_string_literal: true</title>
<updated>2019-12-09T10:17:31+00:00</updated>
<author>
<name>sonots</name>
<email>sonots@gmail.com</email>
</author>
<published>2019-03-21T16:14:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0aafc32995b935b6c46c8439a3e2da008cd683fc'/>
<id>0aafc32995b935b6c46c8439a3e2da008cd683fc</id>
<content type='text'>
https://github.com/ruby/logger/commit/a057eede7b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/logger/commit/a057eede7b
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] Add option to set the binary mode of the log device</title>
<updated>2019-07-15T05:43:08+00:00</updated>
<author>
<name>Rafael Mendonça França</name>
<email>rafaelmfranca@gmail.com</email>
</author>
<published>2019-06-04T22:07:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=58065b87018a9d1ed972b8c856004bf75728da02'/>
<id>58065b87018a9d1ed972b8c856004bf75728da02</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] Set filename when initializing logger with a File object</title>
<updated>2019-07-15T05:43:08+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2019-05-17T00:35:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f4064a0a0c24734b1ec98e6e2dbdf5e38e856c41'/>
<id>f4064a0a0c24734b1ec98e6e2dbdf5e38e856c41</id>
<content type='text'>
This should allow reopen to work.  Requested in ruby issue #14595.

https://github.com/ruby/logger/commit/bd367aff12
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This should allow reopen to work.  Requested in ruby issue #14595.

https://github.com/ruby/logger/commit/bd367aff12
</pre>
</div>
</content>
</entry>
</feed>
