actindi / act-fluent-logger-rails

Fluent logger
MIT License
118 stars 72 forks source link

Use message.inspect if message does not have encoding #23

Closed deanputney closed 8 years ago

deanputney commented 8 years ago

When enabling debug level logging, a developer may want to log objects or hashes that haven't been converted to a string already. In the case of messages with no encoding, inspect the log message and log the inspected result to avoid a failure and skipping the message.

quek commented 8 years ago

https://github.com/actindi/act-fluent-logger-rails/blob/master/lib/act-fluent-logger-rails/logger.rb#L95 Thanks,