Skip to content

Commit

Permalink
Merge pull request #21 from jekyll/trace-better
Browse files Browse the repository at this point in the history
  • Loading branch information
parkr committed Feb 20, 2014
2 parents 245b3f7 + 8df1903 commit 81e43e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/logging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

Mercenary.program(:logger_output) do |p|

p.version "#.#.#"
p.version "5.2.6"
p.description 'An example of turning on logging for Mercenary.'
p.syntax 'logger_output'

Expand Down
2 changes: 1 addition & 1 deletion lib/mercenary/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def logger(level = nil)
@logger = Logger.new(STDOUT)
@logger.level = level || Logger::INFO
@logger.formatter = proc do |severity, datetime, progname, msg|
"#{identity} (#{severity}): #{msg}\n"
"#{identity} | " << "#{severity.downcase.capitalize}:".ljust(7) << " #{msg}\n"
end
end

Expand Down

0 comments on commit 81e43e3

Please sign in to comment.