Class: GitLogger
- Inherits:
-
Cinch::Logger::FormattedLogger
- Object
- Cinch::Logger::FormattedLogger
- GitLogger
- Defined in:
- lib/gitall/logger.rb
Instance Method Summary collapse
- #format_general(message) ⇒ Object
-
#initialize(network, *args) ⇒ GitLogger
constructor
A new instance of GitLogger.
Constructor Details
#initialize(network, *args) ⇒ GitLogger
Returns a new instance of GitLogger.
10 11 12 13 |
# File 'lib/gitall/logger.rb', line 10 def initialize(network, *args) @network = network super(*args) end |
Instance Method Details
#format_general(message) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/gitall/logger.rb', line 15 def format_general() .gsub!(/[^[:print:][:space:]]/) do |m| colorize(m.inspect[1..-2], :bg_white, :black) end "[#{@network}] #{}" end |