Den 22/05/10 04.44, Curt Arnold skrev:

1. I first created an API that had the features I was looking for. That is in 
log4j2-api. While it supports logging a String or an Object it really uses a 
Message interface which is valuable as it allows users to log self-describing 
objects in a convenient manner.
My thinking was the message interface would end up so minimal that might as 
well just use Object.
Would it be feasible to use Object so any object can be logged, but support one or more interfaces that allow a given object to provide more information to the logger framework?

Also, I have had an issue where the I wanted the toString() method on the object to be logged to be delayed as much as possible (somewhat helped with the {}-construct in slf4j). This might be doable with a specific log interface.

--
  Thorbjørn Ravn Andersen  "...plus... Tubular Bells!"


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org

Reply via email to