Class: GitCommander::Logger
- Inherits:
-
Logger
- Object
- Logger
- GitCommander::Logger
- 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
-
#initialize(*args) ⇒ Logger
constructor
A new instance of Logger.
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 |