|
From: Kevin G. <ke...@go...> - 2003-10-30 07:09:49
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
| I see that MDC.pm has an undef value (which was recently '[undef]')
| but I don't see where it's changed to an empty string. By subclassing the
| place where undef values are changed to empty string, I could certainly
| get rid of my problem.
It's changed in the sprintf() in PatternLayout::render(), since this:
sprintf("%s", undef)
produces the empty string, not undef.
| That's why it would be nice to provide a way for the users to do some
| kind of preprocessing on MDC values in order to handle problems which
| are specific to some kind of appenders.
Tell me if I'm just being dense (which is more than likely), but is it
not true that you *do* have complete control the MDC values, you can
init the troublesome one via MDC->put('somenumeric',0) right next to
where you call Log4perl::init(), or even in a BEGIN{} block somewhere.
Right?
What am I missing? Do you have another suggestion? I'm open to ideas....
- --
Happy Trails. . .
Kevin M. Goess
(and Anne and Frank)
904 Carmel Ave.
Albany, CA 94706
(510)525-5217
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org
iD8DBQE/oLiu4g4/Tl71vUkRAqnNAJ4/ixvTH9XfA/W2hdbfvR44Vg6IxgCgmdC8
Bc4MC3qYUR2ViCUcXLHav1w=
=+Xkz
-----END PGP SIGNATURE-----
|