K
Kenneth P. Turvey
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I was looking at the Logger classes the other day and I read some claims
about the performance of the Logger that I found a bit hard to believe.
Ideally what one would like is a system like the assertion system where
logging code is only executed when it is above the level being filtered
by the logging system so code like this:
thisLogger.finest("My info: " + SomeObject.performComplexCalculation());
would not execute except when the user was requesting logging at the
finest level.
I don't believe the Logger is handled this way. It would require
compiler support that I don't believe exists, wouldn't it?
Am I correct in understanding that logging should not be used in inner
loops, even for debugging (if it will be in the code in production)?
Thanks.
- --
Kenneth P. Turvey <[email protected]>
http://kt.squeakydolphin.com (not much there yet)
Jabber IM: (e-mail address removed)
Phone: (314) 255-2199
(If you've seen this message once before, I apologize. I canceled the
wrong one.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDLjEV3naBnF2rJNURAtycAJ9M9m4/F9HlhDYko2S4NhQnfbZqeACgrpRN
bB5dtLoiBRDm2N1DJaOg4JE=
=nAsn
-----END PGP SIGNATURE-----
Hash: SHA1
I was looking at the Logger classes the other day and I read some claims
about the performance of the Logger that I found a bit hard to believe.
Ideally what one would like is a system like the assertion system where
logging code is only executed when it is above the level being filtered
by the logging system so code like this:
thisLogger.finest("My info: " + SomeObject.performComplexCalculation());
would not execute except when the user was requesting logging at the
finest level.
I don't believe the Logger is handled this way. It would require
compiler support that I don't believe exists, wouldn't it?
Am I correct in understanding that logging should not be used in inner
loops, even for debugging (if it will be in the code in production)?
Thanks.
- --
Kenneth P. Turvey <[email protected]>
http://kt.squeakydolphin.com (not much there yet)
Jabber IM: (e-mail address removed)
Phone: (314) 255-2199
(If you've seen this message once before, I apologize. I canceled the
wrong one.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDLjEV3naBnF2rJNURAtycAJ9M9m4/F9HlhDYko2S4NhQnfbZqeACgrpRN
bB5dtLoiBRDm2N1DJaOg4JE=
=nAsn
-----END PGP SIGNATURE-----