Sha256: 20b6474959c63da2e69e4861a5912ffad683b5b2a1e1ab7e791a2552204b4e49
Contents?: true
Size: 517 Bytes
Versions: 9
Compression:
Stored size: 517 Bytes
Contents
#!/usr/bin/env ruby require 'ecraft/logging_library' Rainbow.enabled = true class SomeClass include Ecraft::LoggingLibrary::Loggable def initialize logger.level = :debug end def colortest logger.fatal('This is a fatal error') logger.error('This is a non-fatal error') logger.warn('This is a warning. No need to panic.') logger.info('This is just regular info.') logger.debug('This is a debug message that most applications will have disabled.') end end SomeClass.new.colortest
Version data entries
9 entries across 9 versions & 1 rubygems