1Dancer::Logger(3) User Contributed Perl Documentation Dancer::Logger(3)
2
3
4
6 Dancer::Logger - common interface for logging in Dancer
7
9 version 1.3513
10
12 This module is the wrapper that provides support for different logger
13 engines.
14
16 Default engine
17 The setting logger defines which logger engine to use. If this setting
18 is not set, logging will not be available in the application code.
19
20 Dancer comes with the logger engines Dancer::Logger::File and
21 Dancer::Logger::Console, but more are available on the CPAN.
22
23 Configuration
24 The logger configuration variable tells Dancer which engine to use.
25
26 You can change it either in your config.yml file:
27
28 # logging to console
29 logger: "console"
30
31 Or in the application code:
32
33 # logging to file
34 set logger => 'file';
35
36 The log format can also be configured, please see "logger_format" in
37 Dancer::Logger::Abstract for details.
38
39 Auto-serializing
40 The loggers allow auto-serializing of all inputs:
41
42 debug( 'User credentials: ', \%creds );
43
44 Will provide you with an output in a single log message of the string
45 and the reference dump.
46
48 This module has been written by Alexis Sukrieh. See the AUTHORS file
49 that comes with this distribution for details.
50
52 This module is free software and is released under the same terms as
53 Perl itself.
54
56 See Dancer for details about the complete framework.
57
58 You can also search the CPAN for existing engines in the Dancer::Logger
59 namespace : <http://search.cpan.org/search?query=Dancer%3A%3ALogger>.
60
62 Dancer Core Developers
63
65 This software is copyright (c) 2010 by Alexis Sukrieh.
66
67 This is free software; you can redistribute it and/or modify it under
68 the same terms as the Perl 5 programming language system itself.
69
70
71
72perl v5.30.1 2020-02-05 Dancer::Logger(3)