Class: Asciidoctor::Logging::StubLogger
- Inherits:
-
Object
- Object
- Asciidoctor::Logging::StubLogger
- Defined in:
- lib/asciidoctor-epub3/ext/asciidoctor/logging_shim.rb
Class Method Summary collapse
- .debug(message = nil) ⇒ Object
- .error(message = nil) ⇒ Object
- .fatal(message = nil) ⇒ Object
- .info(message = nil) ⇒ Object
- .warn(message = nil) ⇒ Object
Class Method Details
.debug(message = nil) ⇒ Object
7 8 9 |
# File 'lib/asciidoctor-epub3/ext/asciidoctor/logging_shim.rb', line 7 def debug = nil puts %(asciidoctor: DEBUG: #{ || (block_given? ? yield : '???')}) if $VERBOSE end |
.error(message = nil) ⇒ Object
19 20 21 |
# File 'lib/asciidoctor-epub3/ext/asciidoctor/logging_shim.rb', line 19 def error = nil ::Kernel.warn %(asciidoctor: ERROR: #{ || (block_given? ? yield : '???')}) end |
.fatal(message = nil) ⇒ Object
23 24 25 |
# File 'lib/asciidoctor-epub3/ext/asciidoctor/logging_shim.rb', line 23 def fatal = nil ::Kernel.warn %(asciidoctor: FATAL: #{ || (block_given? ? yield : '???')}) end |
.info(message = nil) ⇒ Object
11 12 13 |
# File 'lib/asciidoctor-epub3/ext/asciidoctor/logging_shim.rb', line 11 def info = nil puts %(asciidoctor: INFO: #{ || (block_given? ? yield : '???')}) if $VERBOSE end |
.warn(message = nil) ⇒ Object
15 16 17 |
# File 'lib/asciidoctor-epub3/ext/asciidoctor/logging_shim.rb', line 15 def warn = nil ::Kernel.warn %(asciidoctor: WARNING: #{ || (block_given? ? yield : '???')}) end |