Fixes #5686: Replicate #5320 in logger_rudder

http://www.rudder-project.org/redmine/issues/5686
I'm pretty sure this is not the latest implementation of this bundle from Rudder...