1Tiny(3pm)             User Contributed Perl Documentation            Tiny(3pm)
2
3
4

NAME

6       MojoX::Log::Log4perl::Tiny - Minimalistic Log4perl adapter for
7       Mojolicious
8

SYNOPSIS

10           use MojoX::Log::Log4perl::Tiny;
11
12           # In your $app->setup...
13
14           $app->log(
15               MojoX::Log::Log4perl::Tiny->new(
16                   logger => Log::Log4perl->get_logger('MyLogger')
17               )
18           );
19

DESCRIPTION

21       MojoX::Log::Log4perl::Tiny allows you to replace default Mojolicious
22       logging "Mojo::Log" with your existing "Log::Log4perl::Logger"
23       instance.
24

METHODS

26   new(Hash %args) returns MojoX::Log::Log4perl::Tiny
27       Creates and returns an instance to replace "Mojolicious->log".
28
29       ·   logger
30
31           A "Log::Log4perl::Logger" instance. Required.
32
33       ·   level
34
35           Minimum log level for logging.  Default: "debug"
36
37       ·   max_history_size
38
39           Max history size for logs to be shown on "exception.html.ep".
40           Default: 5
41

LICENSE

43       Copyright (C) yowcow.
44
45       This library is free software; you can redistribute it and/or modify it
46       under the same terms as Perl itself.
47

AUTHOR

49       yowcow <yowcow@cpan.org>
50
51
52
53perl v5.30.1                      2020-01-30                         Tiny(3pm)
Impressum