logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Log::ger::Util - Utility routines for Log::ger

Author

       perlancar <perlancar@cpan.org>

Description

       This package is created to keep Log::ger as minimalist as possible.

Functions

       None of these functions are exported.

   numeric_level
       Usage:

        my $num = Log::ger::Util::numeric_level($level);

       If given a non-negative integer, will return the number as-is. Otherwise will convert the argument,
       assumed to be a string level, to the associated numeric level. Will die on failure.

   string_level
       Usage:

        my $str_level = Log::ger::Util::string_level($level);

       If given a known string level, will return the string as-is. Otherwise will convert the argument, assumed
       to be a number, to the associated string level.  Will die on failure.

   set_level
       Usage:

        Log::ger::Util::set_level($level);

       Set log level to $level, which can be a string or numeric level. Will die on failure.

   add_hookadd_per_target_hookremove_hookremove_per_target_hookreset_hooksreset_per_target_hooksempty_hooksempty_per_target_hookssave_hookssave_per_target_hooksrestore_hooksrestore_per_target_hooksreinit_targetreinit_all_targetsset_plugin

Name

       Log::ger::Util - Utility routines for Log::ger

Version

       version 0.042

See Also