summaryrefslogtreecommitdiff
path: root/spec/ruby/core/complex
diff options
context:
space:
mode:
authorHartley McGuire <[email protected]>2024-11-07 00:17:05 +0000
committergit <[email protected]>2024-11-07 00:17:16 +0000
commit342455e56fb4f5e0601f45c565baa9a909cf680e (patch)
tree082c9f6fc1d3ca0ec3227cd68d2ee6d74a7979f5 /spec/ruby/core/complex
parent6bc614260db57971889d32f54aa46e1bc7a07f2a (diff)
[ruby/logger] Enable subclasses to configure level isolation
(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
Diffstat (limited to 'spec/ruby/core/complex')
0 files changed, 0 insertions, 0 deletions