./devel/ruby-console, Beautiful logging for Ruby

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.29.2, Package name: ruby32-console-1.29.2, Maintainer: pkgsrc-users

Console

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: 23 KB

Version history: (Expand)


CVS history: (Expand)


   2024-12-09 14:11:58 by Takahiro Kambe | Files touched by this commit (2) | Package updated
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) | Package updated
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) | Package updated
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) | Package updated
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) | Package updated
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) | Package updated
Log message:
devel/ruby-console: update to 1.23.5

1.23.5 (2024-03-06)

* Console::Filter can work with Ractor. (#54)
   2024-02-19 16:02:33 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
devel/ruby-console: update to 1.23.4

1.23.4 (2024-02-12)

* Add "json" dependency.
* Modernize gem.
   2023-12-17 15:16:37 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
devel/ruby-console: update to 1.23.3

1.23.3 (2023-12-03)

* Add "See Also" links.
* Add links to documentation.
* Convert annotation to string before printing. (#53)
* Modernize gem.