L
listrecv
Is there anyway to set a context for log4r?
log4j has somethign like NDC
Basically, in a web app, I'd like to correlate messages for the same
client. I'd like to do something like
context = "#{user.ip} #{user.name}"
and have it automatically appended to each logging message, or, even
better, appended whenever the context changes (that is, if there are 5
messages in a row from the same user, no need to keep repeating the
context)
is this available?
log4j has somethign like NDC
Basically, in a web app, I'd like to correlate messages for the same
client. I'd like to do something like
context = "#{user.ip} #{user.name}"
and have it automatically appended to each logging message, or, even
better, appended whenever the context changes (that is, if there are 5
messages in a row from the same user, no need to keep repeating the
context)
is this available?