Class: HttpStreamingClient::BasicLogFormatter
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- HttpStreamingClient::BasicLogFormatter
- Defined in:
- lib/http_streaming_client/custom_logger.rb
Instance Method Summary collapse
Instance Method Details
#call(severity, time, progname, msg) ⇒ Object
46 47 48 |
# File 'lib/http_streaming_client/custom_logger.rb', line 46 def call(severity, time, progname, msg) "[%s] %s%s - %s\n" % [time.to_s, severity, @tag.nil? ? "" : "(#{@tag})", msg] end |
#tag=(tag) ⇒ Object
50 51 52 |
# File 'lib/http_streaming_client/custom_logger.rb', line 50 def tag=(tag) @tag = tag end |