---
name: "Log::ger::Filter"
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::Filter"
---

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

Use a filter plugin

## NAME

Log::ger::Filter - Use a filter plugin

## VERSION

version 0.042

## SYNOPSIS

To set globally:

```
 use Log::ger::Filter;
 Log::ger::Filter->set('Code', code => sub{ ... });
```

or:

```
 use Log::ger::Filter 'Code', (code => sub { ... });
```

To set for current package only:

```
 use Log::ger::Filter;
 Log::ger::Filter->set_for_current_package('Code', code => sub { ... });
```

## SEE ALSO

Log::ger::Output

Log::ger::Plugin

Log::ger::Format

Log::ger::Layout

## 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.
