Module: DepsGrapher::Logging

Included in:
AstProcessor, CacheFile, Cli, Command::Analyzer, Command::Init, SourceCache, Visualizer::Downloader
Defined in:
lib/deps_grapher/logging.rb

Instance Method Summary collapse

Instance Method Details

#error(&block) ⇒ Object



13
14
15
# File 'lib/deps_grapher/logging.rb', line 13

def error(&block)
  DepsGrapher.logger.error(&block)
end

#info(&block) ⇒ Object



5
6
7
# File 'lib/deps_grapher/logging.rb', line 5

def info(&block)
  DepsGrapher.logger.info(&block)
end

#verbose(&block) ⇒ Object



17
18
19
# File 'lib/deps_grapher/logging.rb', line 17

def verbose(&block)
  DepsGrapher.logger.info(&block) if DepsGrapher.config.verbose
end

#warn(&block) ⇒ Object



9
10
11
# File 'lib/deps_grapher/logging.rb', line 9

def warn(&block)
  DepsGrapher.logger.warn(&block)
end