Class: Kramdown::PlantUml::ConsoleLogger
- Defined in:
- lib/kramdown-plantuml/console_logger.rb
Overview
Logs to $stdout and $stderr
Constant Summary collapse
- LOG_LEVELS =
%i[debug info warn error].freeze
Instance Method Summary collapse
- #debug(message) ⇒ Object
- #error(message) ⇒ Object
- #info(message) ⇒ Object
-
#initialize(level) ⇒ ConsoleLogger
constructor
A new instance of ConsoleLogger.
- #warn(message) ⇒ Object
Constructor Details
#initialize(level) ⇒ ConsoleLogger
Returns a new instance of ConsoleLogger.
11 12 13 |
# File 'lib/kramdown-plantuml/console_logger.rb', line 11 def initialize(level) @configured_log_level = level end |
Instance Method Details
#debug(message) ⇒ Object
15 16 17 |
# File 'lib/kramdown-plantuml/console_logger.rb', line 15 def debug() write(:debug, ) end |
#error(message) ⇒ Object
27 28 29 |
# File 'lib/kramdown-plantuml/console_logger.rb', line 27 def error() write(:error, ) end |
#info(message) ⇒ Object
19 20 21 |
# File 'lib/kramdown-plantuml/console_logger.rb', line 19 def info() write(:info, ) end |
#warn(message) ⇒ Object
23 24 25 |
# File 'lib/kramdown-plantuml/console_logger.rb', line 23 def warn() write(:warn, ) end |