Module: XFTP::Helpers::Logging Private
- Included in:
- Session::Base, Session::SFTP::ProgressHandler
- Defined in:
- lib/xftp/helpers/logging.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Provides logging helper methods
Instance Method Summary collapse
-
#log(message, severity: :info, color: :white) ⇒ Object
private
Appends message to log :reek:UtilityFunction:.
Instance Method Details
#log(message, severity: :info, color: :white) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Appends message to log :reek:UtilityFunction:
13 14 15 16 |
# File 'lib/xftp/helpers/logging.rb', line 13 def log(, severity: :info, color: :white) text = .colorize(color) XFTP.config.logger.public_send(severity, text) end |