Method: Graphiti.log
- Defined in:
- lib/graphiti.rb
.log(msg, color = :white, bold = false) ⇒ Object
| 90 91 92 93 94 95 96 97 98 | # File 'lib/graphiti.rb', line 90 def self.log(msg, color = :white, bold = false) colored = if ::ActiveSupport.version >= Gem::Version.new("7.1") ActiveSupport::LogSubscriber.new.send(:color, msg, color, bold: bold) else ActiveSupport::LogSubscriber.new.send(:color, msg, color, bold) end logger.debug(colored) end |