lib/convenient_service/logger.rb in convenient_service-0.16.0 vs lib/convenient_service/logger.rb in convenient_service-0.17.0
- old
+ new
@@ -12,10 +12,13 @@
#
module ConvenientService
##
# @internal
# TODO: Custom matcher to track log messages.
+ # TODO: Fallback for logging methods. Just like with `#clean` in backtrace cleaner.
+ # TODO: Highlight vertical bars.
+ # TODO: Highlight tag brackets.
#
class Logger < ::Logger
include ::Singleton
class << self
@@ -90,10 +93,10 @@
# - https://github.com/ruby/logger/blob/v1.5.3/lib/logger.rb#L651
# - https://github.com/ruby/logger/blob/v1.5.3/lib/logger.rb#L397
#
# NOTE: Early return is NOT used, since it is NOT possible to return custom values from `writer` methods.
#
- # NOTE: `Warning.warn` is chosen over `Kernel.warn` in order to have a simple to track delegation from RSpec.
+ # NOTE: `Warning.warn` is chosen over `Kernel.warn` in order to have a simple way to track delegation from RSpec.
# - https://ruby-doc.org/core-2.7.0/Warning.html#method-i-warn
#
# TODO: Tag/prefix for all Convenient Service logs.
#
def level=(severity)