ido50/Leyland — Issue #2: Feature Request: Logging object creation outside of Leyland
Author: giftnuss
Created: 2011-12-23 14:13:06+00:00
State: open

In the last released version of Leyland the log attribute
is read only. Currently, when something is used like

$app = Leyland->new(config => $config, log => $logger);

the $logger will be replaced by the internal initialization in the
BUILD method.

To address this issue I recommend only a little code change in the method Leyland::BUILD.

# setup logger
unless(defined($self->{'log'})) {
...
}