lib/convenient_service/logger.rb in convenient_service-0.11.0 vs lib/convenient_service/logger.rb in convenient_service-0.12.0
- old
+ new
@@ -21,18 +21,19 @@
class << self
private
##
- # NOTE: `super` is `Logger.new`.
- # https://ruby-doc.org/stdlib-3.1.0/libdoc/logger/rdoc/Logger.html#method-c-new
+ # @internal
+ # NOTE: `super` is `Logger.new`.
+ # - https://ruby-doc.org/stdlib-3.1.0/libdoc/logger/rdoc/Logger.html#method-c-new
#
# rubocop:disable Style/GlobalStdStream
def new
- super(STDOUT).tap do |logger|
- logger.level = ENV["ACTIVE_SERVICE_LOGGER_LEVEL"] || "INFO"
+ super(::STDOUT).tap do |logger|
+ logger.level = ::ENV["CONVENIENT_SERVICE_LOGGER_LEVEL"] || "INFO"
- logger.formatter = colored_formatter if ENV["ACTIVE_SERVICE_LOGGER_ENABLE_COLORS"] == "true"
+ logger.formatter = colored_formatter if ::ENV["CONVENIENT_SERVICE_LOGGER_ENABLE_COLORS"] == "true"
end
end
# rubocop:enable Style/GlobalStdStream
def original_formatter