[Koha-bugs] [Bug 14167] Add Koha::Logger based on Log4perl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 8 15:54:32 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14167

--- Comment #6 from Kyle M Hall <kyle at bywatersolutions.com> ---
> > ::: Koha/Logger.pm
> > @@ +58,5 @@
> > > +    my ( $class, $category ) = @_;
> > > +
> > > +    croak("No category passed in!") unless $category;
> > > +
> > > +    my $interface = C4::Context->interface();
> > 
> > What if it isn't set?

I think I missed your meaning. That's a very good question. By default if the
interface isn't 'staff' it's 'opac'. I think maybe we should be able to pass in
an interface parameter as well so we can set the interface to 'cli' or 'cron'
or other such things.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list