MojoX::Log::Report(3pm)

MojoX::Log::Report3pm

Divert log messages into log::report

Usage

  use MojoX::Log::Report;
  my $log = MojoX::Log::Report->new(%options);
  $app->log($log);  # install logger in the Mojo::App

Inheritance

 MojoX::Log::Report
   is a Mojo::Log

Overview

[Included since Log::Report v1.00] Mojo likes to log messages directly into a file, by default. Log::Report constructs a Log::Report::Exception object first.

Be aware that this extension does catch the messages to be logged, but that the dispatching of the error follows a different route now. For instance, you cannot use $ENV{MOJO_LOG_LEVEL} to control the output level, but you need to use Log::Report::dispatcher() action "mode".

Mojo defines five "levels" of messages, which map onto Log::Report's reasons this way:

  debug  TRACE
  info   INFO
  warn   WARNING
  error  ERROR
  fatal  ALERT

Methods

Constructors

$class->new(%options)

Inherited %options "path" and "level" are ignored.

Releases

7 releases since Debian 8 (Jessie); the text changed 6 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13
  7. Arch

License

For contributors see file ChangeLog.

This software is copyright (c) 2007-2026 by Mark Overmeer.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

From perl-log-report 1.46-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.