06 Jun 2021 17:32:08 UTC
- Distribution: Dancer2
- Module version: 0.301004
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (1111 / 3 / 0)
- KwaliteeBus factor: 3
- 84.81% Coverage
- License: perl_5
- Activity24 month
- Download (391.12KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:78 non-PAUSE usersCROMEDOME Jason A. Cromeand 1 contributors
- Dancer Core Developers
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Dancer2::Logger::File - file-based logging engine for Dancer2
This is a logging engine that allows you to save your logs to files on disk.
Logs are not automatically rotated. Use a log rotation tool like
Writes the log message to the file.
loggershould be set to
Filein order to use this logging engine in a Dancer2 application.
The follow attributes are supported:
Directory path to hold log files.
Defaults to logs in the application directory
The name of the log file.
Defaults to the environment name with a .log suffix
Here is an example configuration that use this logger and stores logs in /var/log/myapp:
logger: "File" engines: logger: File: log_dir: "/var/log/myapp" file_name: "myapp.log"
Dancer Core Developers
This software is copyright (c) 2021 by Alexis Sukrieh.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.