module ConsoleDetective::Utils
Constants
- LOGGER_PROC
Public Class Methods
get_tag()
click to toggle source
# File lib/console_detective/utils.rb, line 11 def self.get_tag return @tag if ConsoleDetective.tag_memoization && @tag @tag = ConsoleDetective.log_tags.call end
log_command(command, immediately: false)
click to toggle source
# File lib/console_detective/utils.rb, line 16 def self.log_command(command, immediately: false) return Thread.new { ConsoleDetective::Utils::LOGGER_PROC.call(command) } unless immediately ConsoleDetective::Utils::LOGGER_PROC.call(command) end
logger()
click to toggle source
# File lib/console_detective/utils.rb, line 7 def self.logger @logger ||= Logger.new(ConsoleDetective.log_file_name) end