You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by srikanth sampath <sr...@yahoo.com> on 2007/11/20 02:58:24 UTC

PatternLayouts

Hi,
I have a question regarding if the following is supported:

o I have wrapper that uses LOG4CXX API to print log messages.  I would like to print the messages optionally with the file and line #.  
o Using it this way, prints the file, line number where log4cxx API is invoked and NOT where the wrapper was invoked, which is the actual place where the message originated.  Note that I cannot use a macro or such for the wrapper.  It is a class in itself.

o Does LOG4CXX provide the following API
   - Is print the file/line number option enabled ?
   - (If so), set the file/line number provided(which I can pass to the wrapper).

Thanks!
--Srikanth




      ____________________________________________________________________________________
Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.  http://overview.mail.yahoo.com/