Module: Logger
- Defined in:
- lib/asker/logger.rb
Overview
Display and log project messages
Class Method Summary collapse
-
.verbose(msg) ⇒ Object
Display and log text.
-
.verboseln(msg) ⇒ Object
Display and log text line.
Class Method Details
.verbose(msg) ⇒ Object
Display and log text
10 11 12 13 |
# File 'lib/asker/logger.rb', line 10 def self.verbose(msg) puts msg if Application.instance.config['global']['verbose'] == 'yes' Project.instance.get(:logfile)&.write("#{msg}\n") end |
.verboseln(msg) ⇒ Object
Display and log text line
17 18 19 |
# File 'lib/asker/logger.rb', line 17 def self.verboseln(msg) verbose(msg + "\n") end |