Class: GitCommander::Logger

Inherits:
Logger
  • Object
show all
Defined in:
lib/git_commander/logger.rb

Overview

Handles logging for GitCommander

Defined Under Namespace

Classes: SimpleFormatter

Constant Summary collapse

DEFAULT_LOG_FILE =
"/tmp/git-commander.log"

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Logger

Returns a new instance of Logger.



10
11
12
13
14
15
# File 'lib/git_commander/logger.rb', line 10

def initialize(*args)
  log_file = args.shift || log_file_path
  args.unshift(log_file)
  super(*args)
  @formatter = SimpleFormatter.new
end