GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Dancer2::Logger::File(3) User Contributed Perl Documentation Dancer2::Logger::File(3)

Dancer2::Logger::File - file-based logging engine for Dancer2

version 0.400000

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 "logrotate" in "copytruncate" mode.

Writes the log message to the file.

The setting "logger" should be set to "File" in order to use this logging engine in a Dancer2 application.

The follow attributes are supported:

  • "log_dir"

    Directory path to hold log files.

    Defaults to logs in the application directory

  • "file_name"

    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) 2022 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.

2022-03-14 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.