Enable client logtrace with environment vars
authorBill Erickson <berick@esilibrary.com>
Wed, 17 Oct 2012 18:31:02 +0000 (14:31 -0400)
committerBill Erickson <berick@esilibrary.com>
Wed, 17 Oct 2012 18:31:02 +0000 (14:31 -0400)
commit0aedf9d09602bf567fde152298dba86854174f2b
treec79772edc2f0556d04f2d70244d25b158d5c031f
parent56e5f5d796bcbf80bd8e801d523fc9e2aee3947d
Enable client logtrace with environment vars

Supports a new environment variable OSRF_LOG_CLIENT which, if true,
enables control and generation of the client log trace value.  This is
the same as setting <client>true</client> within the opensrf core
configuration file.

As a shortcut, if the MOD_PERL environment variable is set, assume
client=true.

This allows clients and non-clients to share an opensrf core
configuration file, when previously the only difference between the two
was the <client> setting.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
src/perl/lib/OpenSRF/Utils/Logger.pm