---
name: "Log::ger::Util"
section: "3pm"
platform: "linux"
package: "liblog-ger-perl"
version: "0.042-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Log::ger::Util"
---

# Log::ger::Util(3pm)

Utility routines for Log::ger

## NAME

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

## VERSION

version 0.042

## 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\_hook

### add\_per\_target\_hook

### remove\_hook

### remove\_per\_target\_hook

### reset\_hooks

### reset\_per\_target\_hooks

### empty\_hooks

### empty\_per\_target\_hooks

### save\_hooks

### save\_per\_target\_hooks

### restore\_hooks

### restore\_per\_target\_hooks

### reinit\_target

### reinit\_all\_targets

### set\_plugin

## AUTHOR

perlancar \<perlancar@cpan.org\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2023, 2022, 2020, 2019, 2018, 2017 by perlancar \<perlancar@cpan.org\>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
