Deepesh,

In the Category class there is a method called log which is designed
to support wrappers. Its signature is:

log(String callerFQCN, Priority level, Object message, Throwable t)

where callerFQCN is the fully qualified name of the calling class.

The next version of the complete manual explains this in some
detail. However, it is not yet available.

I hope this helps.

At 18:04 11.11.2002 +0530, Deepesh Jain wrote:
Hi,
I am using log4J for logging in my application.
I have made the wrapper class for logging which in turn calls log4J API's
but when I use wrapper class in my application and  log the message in the
file, logged messages contain the wrapper class name and wrapper class
function name which calls the Log4J API instead of application class name
and application method name .

Can you please suggest some way out to solve the problem.
Quick response is highly appreciated.
Thanks in advance.

Regards,

Deepesh
--
Ceki

TCP implementations will follow a general principle of robustness: be
conservative in what you do, be liberal in what you accept from
others. -- Jon Postel, RFC 793



--
To unsubscribe, e-mail:   <mailto:log4j-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-dev-help@;jakarta.apache.org>

Reply via email to