Class-Debug
view release on metacpan or search on metacpan
To control debug behavior at runtime, `Class::Debug` supports loading settings from a configuration file via [Config::Abstraction](https://metacpan.org/pod/Config%3A%3AAbstraction).
A minimal example of a config file (`~/.conf/local.conf`) might look like:
[My::Module]
logger.file = /var/log/mymodule.log
The `setup()` function will read this file,
overlay it onto your default parameters,
and initialize the logger accordingly.
If the file is not readable and no config\_dirs are provided,
the module will throw an error.
This mechanism allows dynamic tuning of logging behavior (or other parameters you expose) without modifying code.
More details to be written.
### USING ENVIRONMENT VARIABLES
lib/Class/Debug.pm view on Meta::CPAN
To control debug behavior at runtime, C<Class::Debug> supports loading settings from a configuration file via L<Config::Abstraction>.
A minimal example of a config file (C<~/.conf/local.conf>) might look like:
[My::Module]
logger.file = /var/log/mymodule.log
The C<setup()> function will read this file,
overlay it onto your default parameters,
and initialize the logger accordingly.
If the file is not readable and no config_dirs are provided,
the module will throw an error.
This mechanism allows dynamic tuning of logging behavior (or other parameters you expose) without modifying code.
More details to be written.
=head3 USING ENVIRONMENT VARIABLES
( run in 0.864 second using v1.01-cache-2.11-cpan-5837b0d9d2c )