BufferedLogger is the default Rails registrar. Its goal is to log without threading. If you wish, you can wrap this logger in a TaggedBufferedLogger and use it if you want to "mark" your log output.
Straight from weblog.rails
Tagged logger
When you’re running a multi-user, multi-account application, it’s a great help to be able to filter the log by who did what. Enter the TaggedLogging wrapper. It works like this:
Logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT))
Logger.tagged("BCX") { Logger.info "Stuff" }
Logger.tagged("BCX") do
Logger.tagged("Jason") do
Logger.info "Stuff"
end
end
source
share