Class: Docx::Logger
- Inherits:
-
Logger
- Object
- Logger
- Docx::Logger
- Defined in:
- lib/docx/logger.rb
Overview
Simple logger for the gem
Available levels (from 0 to 5): DEBUG < INFO < WARN < ERROR < FATAL < UNKNOWN
Defined Under Namespace
Classes: SimpleFormatter
Instance Method Summary collapse
-
#initialize(*args, **kwargs) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(*args, **kwargs) ⇒ Logger
Returns a new instance of Logger.
11 12 13 14 15 |
# File 'lib/docx/logger.rb', line 11 def initialize(*args, **kwargs) super @formatter = SimpleFormatter.new @level = ENV['LOG_LEVEL'].to_i if ENV.keys.include?('LOG_LEVEL') end |