From: Ulf-D. E. <nos...@sp...> - 2007-04-11 18:52:13
|
Hello, there's a bug in the Log-Log4perl documentaion: According to the Log::Log4perl man page, 'Log::Log4perl::MDC->get($key)' "... will return the string '[undef]'", if "no value has been stored previously under $key". The man page (and code) of "Log::Log4perl::MDC" says: "If no value exists to the given key, 'undef' is returned." It seems that "MDC->get()" can safely return "undef"; "%X{undefined}" will still print the *string* "[undef]". The same is true for "NDC-get()"... Regards, Ulf _______________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 |