I have a server that generates a lot of log messages, and runs in about
15 seconds. Printing the class name, method name and line number, it
took 5 minutes...
Scruffles - wrote:
> Of course I understand that reflection is slow. My
> boss is insistent that we should be able to log the
> method name, however, and I'm not sure what to tell
> him. In our old logging system, the programmer passed
> the method name as one of the parameters. This is a
> bit of a pain (not to mention it was prone to error).
> No one here wants to use anything with reflection
> (personally, I don't think we even need the method
> names).
>
> I would like to just use Log4J's ability to show
> method names, should the case arise that we really
> need them - they could always be turned off.
>
> What is the general opinion? Should reflection be
> avoided at all costs, or should we just be careful of
> what we log?
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Eduardo Issao Ito <[EMAIL PROTECTED]>
Integration Technologies Ltda. <http://www.integrationtech.com.br>
Rua Marina Saddi Haidar, 176
04650-050 / Sao Paulo / SP / Brasil
Phone: +55 11 5522-4848 x311
Fax: +55 11 5524-1125
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]