The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Google::RestApi logger_init.pl - Conditionally initialize log4perl.

DESCRIPTION

This does a conditional load of log4perl and if not found, stubs out the logger calls. it should be called with a 'do' so that the code executes in the caller's package.

This should allow you to run the API with or without log4perl installed.