Custom logging

I need to log username in log file.

if we customise logging by editing log4j.properties, is it possible to add user defined properties in log4j to log username?

  Discussion posts and replies are publicly visible

Parents
  • Typically event logging includes more than just a single attribute, along the lines of "Who" did "What" and "When" and maybe some "Context". 

    Also, logs shouldn't be considered as "Write only" data sinks. You need to consider who needs to access the content, why, when and how. Looking at this as a holistic feature you may find that you need more than just a write to the log4j file!

Reply
  • Typically event logging includes more than just a single attribute, along the lines of "Who" did "What" and "When" and maybe some "Context". 

    Also, logs shouldn't be considered as "Write only" data sinks. You need to consider who needs to access the content, why, when and how. Looking at this as a holistic feature you may find that you need more than just a write to the log4j file!

Children
No Data