Path to this page:
./
devel/ruby-console,
Beautiful logging for Ruby
Branch: CURRENT,
Version: 1.30.2,
Package name: ruby32-console-1.30.2,
Maintainer: pkgsrc-usersConsole
Provides beautiful console logging for Ruby applications. Implements fast,
buffered log output.
Motivation
When Ruby decided to reverse the order of exception backtraces, I finally
gave up using the built in logging and decided restore sanity to the output
of my programs once and for all!
Features
* Thread safe global logger with per-fiber context.
* Carry along context with nested loggers.
* Enable/disable log levels per-class.
* Detailed logging of exceptions.
* Beautiful logging to the terminal or structured logging using JSON.
Master sites:
Filesize: 29 KB
Version history: (Expand)
- (2025-03-16) Updated to version: ruby32-console-1.30.2
- (2025-02-23) Updated to version: ruby32-console-1.29.3
- (2024-12-09) Updated to version: ruby32-console-1.29.2
- (2024-11-06) Updated to version: ruby32-console-1.29.0
- (2024-07-20) Updated to version: ruby32-console-1.27.0
- (2024-05-05) Updated to version: ruby32-console-1.25.2
CVS history: (Expand)
2025-03-16 14:50:53 by Takahiro Kambe | Files touched by this commit (3) |  |
Log message:
devel/ruby-console: update to 1.30.2
1.30.0 (2025-03-07)
Introduce Console::Config for fine grained configuration.
Introduced a new explicit configuration interface via config/console.rb to
enhance logging setup in complex applications. This update gives the
application code an opportunity to load files if required and control
aspects such as log level, output, and more. Users can override default
behaviors (e.g., make_output, make_logger, and log_level) for improved
customization.
# config/console.rb
def log_level(env = ENV)
# Set a custom log level, e.g., force debug mode:
:debug
end
def make_logger(output = $stderr, env = ENV, **options)
# Custom logger configuration with verbose output:
options[:verbose] = true
Logger.new(output, **options)
end
This approach provides a standard way to hook into the log setup process,
allowing tailored adjustments for reliable and customizable logging
behavior.
1.30.1 (2025-03-09)
* Remove circular require
1.30.2 (2025-03-10)
* Add missing require.
|
2025-02-23 14:56:49 by Takahiro Kambe | Files touched by this commit (2) |  |
Log message:
devel/ruby-console: update to 1.29.3
1.29.3 (2025-02-19)
* Serialized output now uses IO#write with a single string to reduce the
chance of interleaved output.
|
2024-12-09 14:11:58 by Takahiro Kambe | Files touched by this commit (2) |  |
Log message:
devel/ruby-console: update to 1.29.2
1.29.1 (2024-12-09)
* Fix logging exception: keyword argument when the value was not an
exception.
1.29.2 (2024-12-09)
* Always return nil from Console::Filter logging methods.
|
2024-11-06 15:06:53 by Takahiro Kambe | Files touched by this commit (3) |  |
Log message:
devel/ruby-console: update to 1.29.0
1.28.0 (2024-11-05)
* Add support for Kernel#warn redirection to Console.warn.
1.28.1 (2024-11-05)
(Unknown)
1.29.0 (2024-11-06)
* Don't make Kernel#warn redirection to Console.warn the default behavior,
you must require 'console/warn' to enable it.
* Remove deprecated Console::Logger#failure.
Consistent Handling of Exceptions
Console.call and all wrapper methods will now consistently handle exceptions
that are the last positional argument or keyword argument. This means that
the following code will work as expected:
begin
rescue => error
# Last positional argument:
Console.warn(self, "There may be an issue", error)
# Keyword argument (preferable):
Console.error(self, "There is an issue", exception: error)
end
|
2024-07-20 17:23:45 by Takahiro Kambe | Files touched by this commit (2) |  |
Log message:
devel/ruby-console: update to 1.27.0
1.26.0 (2024-07-17)
* Expand the Console::Capture interface for easier testing.
1.27.0 (2024-07-19)
* Fix external tests.
* Event::Failure: add #exception (#61)
|
2024-05-05 18:26:14 by Takahiro Kambe | Files touched by this commit (3) |  |
Log message:
devel/ruby-console: update to 1.25.2
1.23.7 (2024-04-20)
* The exception backtrace should be split into at most 3 pieces.
1.24.0 (2024-04-22)
* Add compatible shim for Exception#detailed_message. (#58)
* Better output formatting of options.
1.25.0 (2024-05-03)
* Separation of output formatting from log generation/schema. (#60)
* Use Console::CapturedOutput everywhere.
* Improve getting started guide.
* Remove test file.
* Add guidelines for custom events.
* Set minimum version of fiber-local gem.
* Compatibility with previous event argument.
1.25.1 (2024-05-03)
* Add tests for Console::Event::Spawn.
1.25.2 (2024-05-04)
* Apply subject/level filtering in Filter#call.
|
2024-03-24 14:41:35 by Takahiro Kambe | Files touched by this commit (2) |  |
Log message:
devel/ruby-console: update to 1.23.6
1.23.6 (2024-03-20)
* Disable usage of Ractor.make_shareable on Ruby 3.0 as it's broken on Ruby
3.0.2. (#56)
|
2024-03-10 16:03:30 by Takahiro Kambe | Files touched by this commit (2) |  |
Log message:
devel/ruby-console: update to 1.23.5
1.23.5 (2024-03-06)
* Console::Filter can work with Ractor. (#54)
|