Class: GRCommons::GRLogger
- Inherits:
-
Logger
- Object
- Logger
- GRCommons::GRLogger
- Defined in:
- lib/gr_commons/gr_logger.rb
Overview
Note:
Mainly used by developers for debugging.
If GR.rb call native functions of the GR framework, it will be recorded in the log file.
How it works 
It prepend a module named Inspector to the singular class of the FFI module. It will inspects the GR function call of the FFI module
Class Method Summary collapse
-
.logger ⇒ Object
Return the last created GRLogger.
Instance Method Summary collapse
-
#initialize(out = $stderr) ⇒ GRLogger
constructor
A new instance of GRLogger.
Constructor Details
#initialize(out = $stderr) ⇒ GRLogger
Returns a new instance of GRLogger.
53 54 55 56 |
# File 'lib/gr_commons/gr_logger.rb', line 53 def initialize(out = $stderr) super(out, level: :info) @@logger ||= self end |