Module: GitMiner
- Defined in:
- lib/git_miner.rb,
lib/git_miner/core.rb,
lib/git_miner/version.rb,
lib/git_miner/git_util.rb,
lib/git_miner/progress.rb,
lib/git_miner/group_manager.rb,
lib/git_miner/mining_result.rb,
lib/git_miner/engine/ruby_engine.rb,
lib/git_miner/utils/register_hook.rb,
lib/git_miner/engine/abstract_engine.rb,
lib/git_miner/dispatch/simple_dispatch.rb,
lib/git_miner/engine/c_extension_engine.rb,
lib/git_miner/dispatch/abstract_dispatch.rb,
lib/git_miner/dispatch/parallel_dispatch.rb
Defined Under Namespace
Modules: Dispatch, Engine Classes: Core, GitUtil, GroupManager, MiningResult, Progress, RegisterHook, UserError
Constant Summary collapse
- VERSION =
"0.2.4"
Class Method Summary collapse
Class Method Details
.logger ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/git_miner.rb', line 10 def logger return @logger if defined?(@logger) @logger = Logger.new(STDOUT) @logger.formatter = proc do |severity, datetime, _progname, msg| date_format = datetime.strftime("%Y-%m-%d %H:%M:%S") if @logger.level == Logger::INFO "[GitMiner] #{msg}\n" else "[GitMiner] #{date_format} #{severity}: #{msg}\n" end end @logger end |