lemonldap-ng/lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI/Constants.pm
Xavier Guimard 2d2edb61ac Merge experimental branch (#960)
Also update version to 2.0
2016-03-17 22:19:44 +00:00

26 lines
450 B
Perl

package Lemonldap::NG::Common::PSGI::Constants;
use strict;
use Exporter 'import';
use base qw(Exporter);
our $VERSION = '2.0.0';
# CONSTANTS
use constant {
DEBUG => 4,
INFO => 3,
WARN => 2,
NOTICE => 1,
ERROR => 0,
};
our $no = qr/^(?:off|no|0)?$/i;
our %EXPORT_TAGS = ( 'all' => [qw(DEBUG INFO WARN ERROR $no)] );
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
our @EXPORT = ( @{ $EXPORT_TAGS{'all'} } );
1;