Module: Patcmd::CLI::Helpers::Logger
- Included in:
- BaseCommand
- Defined in:
- lib/patcmd/cli/helpers/logger.rb
Instance Method Summary collapse
-
#log_error(message) ⇒ void
Logs an error message with a timestamp.
-
#log_info(message) ⇒ void
Logs an informational message with a timestamp.
Instance Method Details
#log_error(message) ⇒ void
This method returns an undefined value.
Logs an error message with a timestamp.
19 20 21 |
# File 'lib/patcmd/cli/helpers/logger.rb', line 19 def log_error() puts "[ERROR] #{Time.now.strftime("%Y-%m-%d %H:%M:%S")} - #{}" end |
#log_info(message) ⇒ void
This method returns an undefined value.
Logs an informational message with a timestamp.
11 12 13 |
# File 'lib/patcmd/cli/helpers/logger.rb', line 11 def log_info() puts "[INFO] #{Time.now.strftime("%Y-%m-%d %H:%M:%S")} - #{}" end |