freebsd-ports/devel/p5-Log-Any-IfLOG/pkg-descr
Sunpoet Po-Chuan Hsieh ac3cfd4a18 - Add p5-Log-Any-IfLOG 0.01
Log::Any::IfLOG will load Log::Any only when LOG environment variable is true.
Otherwise, the module is not loaded and if user imports $log, a dumb object will
be returned instead that will accept any method but return false.

This is a quick-hack solution to avoid the cost of loading Log::Any under
"normal condition" (when LOG is not set to true).

WWW: http://search.cpan.org/dist/Log-Any-IfLOG/
2015-03-07 13:50:21 +00:00

8 lines
400 B
Text

Log::Any::IfLOG will load Log::Any only when LOG environment variable is true.
Otherwise, the module is not loaded and if user imports $log, a dumb object will
be returned instead that will accept any method but return false.
This is a quick-hack solution to avoid the cost of loading Log::Any under
"normal condition" (when LOG is not set to true).
WWW: http://search.cpan.org/dist/Log-Any-IfLOG/