<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/logger.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] Enable subclasses to configure level isolation</title>
<updated>2024-11-07T00:17:16+00:00</updated>
<author>
<name>Hartley McGuire</name>
<email>skipkayhil@gmail.com</email>
</author>
<published>2024-11-07T00:17:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=342455e56fb4f5e0601f45c565baa9a909cf680e'/>
<id>342455e56fb4f5e0601f45c565baa9a909cf680e</id>
<content type='text'>
(https://github.com/ruby/logger/pull/103)

`Logger#with_level` was recently added to enable configuring a
`Logger`'s level for the duration of a block. However, the configured
level is always tied to the currently running `Fiber`, which is not
always ideal in applications that mix `Thread`s and `Fiber`s.

For example, Active Support has provided a similar feature
(`ActiveSupport::Logger#log_at`) which, depending on configuration, can
be isolated to either `Thread`s or `Fiber`s.

This commit enables subclasses of `Logger` to customize the level
isolation. Ideally, it will enable replacing most of Active Support's
`#log_at`, since both methods end up serving the same purpose.

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

`Logger#with_level` was recently added to enable configuring a
`Logger`'s level for the duration of a block. However, the configured
level is always tied to the currently running `Fiber`, which is not
always ideal in applications that mix `Thread`s and `Fiber`s.

For example, Active Support has provided a similar feature
(`ActiveSupport::Logger#log_at`) which, depending on configuration, can
be isolated to either `Thread`s or `Fiber`s.

This commit enables subclasses of `Logger` to customize the level
isolation. Ideally, it will enable replacing most of Active Support's
`#log_at`, since both methods end up serving the same purpose.

https://github.com/ruby/logger/commit/dae2b832cd
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] Guarantee level_override exists</title>
<updated>2024-08-21T01:10:56+00:00</updated>
<author>
<name>Michael Chui</name>
<email>saraid216@gmail.com</email>
</author>
<published>2024-08-20T22:24:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=014708ad5a84b454d16e532f48476d2760ea5b56'/>
<id>014708ad5a84b454d16e532f48476d2760ea5b56</id>
<content type='text'>
Some Ruby apps subclass Logger without running the superclass
constructor, which means that `@level_override` isn't initialized
properly. This can be fixed in some cases, but the gem should maintain
backwards compatibility.

https://github.com/ruby/logger/commit/3246f38328
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some Ruby apps subclass Logger without running the superclass
constructor, which means that `@level_override` isn't initialized
properly. This can be fixed in some cases, but the gem should maintain
backwards compatibility.

https://github.com/ruby/logger/commit/3246f38328
</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] [DOC] Fix broken link</title>
<updated>2023-11-07T06:35:37+00:00</updated>
<author>
<name>BurdetteLamar</name>
<email>burdettelamar@yahoo.com</email>
</author>
<published>2023-09-21T20:12:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8d56260910e88c50beeaae6b92ca21f0fa86f839'/>
<id>8d56260910e88c50beeaae6b92ca21f0fa86f839</id>
<content type='text'>
https://github.com/ruby/logger/commit/8c135bce9a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/logger/commit/8c135bce9a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] Add Logger#with_level{...} for block-scoped log level.</title>
<updated>2023-02-10T01:08:49+00:00</updated>
<author>
<name>Mike Perham</name>
<email>mike@perham.net</email>
</author>
<published>2023-02-10T01:08:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=194520f80e1cdb71faa055d731450855a1ddb8d1'/>
<id>194520f80e1cdb71faa055d731450855a1ddb8d1</id>
<content type='text'>
(https://github.com/ruby/logger/pull/85)

* Update lib/logger/severity.rb

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

* Update lib/logger/severity.rb

https://github.com/ruby/logger/commit/7aabb0b4aa
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] Replace the external URIs to docs with rdoc-ref</title>
<updated>2022-10-12T03:27:40+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-10-12T02:54:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3539da64fc42d6eb76f1d4c3ccd219c3259ecd8b'/>
<id>3539da64fc42d6eb76f1d4c3ccd219c3259ecd8b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] Fix the Logger::Formatter documentation</title>
<updated>2022-10-07T10:37:27+00:00</updated>
<author>
<name>lijunwei</name>
<email>ljw532344863@sina.com</email>
</author>
<published>2022-08-20T15:12:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1e6cdc76e4b11084f85b2b4718090787a500fd69'/>
<id>1e6cdc76e4b11084f85b2b4718090787a500fd69</id>
<content type='text'>
https://github.com/ruby/logger/commit/db554fbda7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/logger/commit/db554fbda7
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] [DOC] Enhanced RDoc for Logger (https://github.com/ruby/logger/pull/77)</title>
<updated>2022-05-13T20:02:18+00:00</updated>
<author>
<name>Burdette Lamar</name>
<email>BurdetteLamar@Yahoo.com</email>
</author>
<published>2022-05-13T20:02:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9639dc91d936a637db56c19664a46c024059bc40'/>
<id>9639dc91d936a637db56c19664a46c024059bc40</id>
<content type='text'>
Enhanced RDoc for Logger

https://github.com/ruby/logger/commit/c601ed0370

Co-authored-by: Peter Zhu &lt;peter@peterzhu.ca&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Enhanced RDoc for Logger

https://github.com/ruby/logger/commit/c601ed0370

Co-authored-by: Peter Zhu &lt;peter@peterzhu.ca&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] Update lib/logger.rb</title>
<updated>2022-05-13T13:52:59+00:00</updated>
<author>
<name>Burdette Lamar</name>
<email>BurdetteLamar@Yahoo.com</email>
</author>
<published>2022-05-12T19:42:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=55ba41440543ed10748a2ed2bdc77b6553bf0b7b'/>
<id>55ba41440543ed10748a2ed2bdc77b6553bf0b7b</id>
<content type='text'>
https://github.com/ruby/logger/commit/a5a2f2da4a

Co-authored-by: Peter Zhu &lt;peter@peterzhu.ca&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/logger/commit/a5a2f2da4a

Co-authored-by: Peter Zhu &lt;peter@peterzhu.ca&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/logger] Update lib/logger.rb</title>
<updated>2022-05-13T13:52:58+00:00</updated>
<author>
<name>Burdette Lamar</name>
<email>BurdetteLamar@Yahoo.com</email>
</author>
<published>2022-05-12T18:21:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1f1283b927addb8b55c4133716b291e0f237df38'/>
<id>1f1283b927addb8b55c4133716b291e0f237df38</id>
<content type='text'>
https://github.com/ruby/logger/commit/e6f2c64fc6

Co-authored-by: Peter Zhu &lt;peter@peterzhu.ca&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/logger/commit/e6f2c64fc6

Co-authored-by: Peter Zhu &lt;peter@peterzhu.ca&gt;</pre>
</div>
</content>
</entry>
</feed>
