class GRCommons::GRLogger

If GR.rb call native functions of the GR framework, it will be recorded in the log file.

@note Mainly used by developers for debugging.

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

@example

require 'gr_commons/gr_logger'
GRCommons::GRLogger.new("log.txt")

Public Class Methods

logger() click to toggle source

Return the last created GRLogger

# File lib/gr_commons/gr_logger.rb, line 49
def self.logger
  @@logger ||= GRCommons::GRLogger.new
end
new(out = $stderr) click to toggle source
Calls superclass method
# File lib/gr_commons/gr_logger.rb, line 53
def initialize(out = $stderr)
  super(out, level: :info)
  @@logger ||= self
end