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
MojoX::Log::Report(3) User Contributed Perl Documentation MojoX::Log::Report(3)
 

MojoX::Log::Report - divert log messages into Log::Report

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

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

[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

MojoX::Log::Report->new(%options)
Inherited %options "path" and "level" are ignored.

This module is part of Log-Report distribution version 1.27, built on June 01, 2018. Website: http://perl.overmeer.net/CPAN/

Copyrights 2007-2018 by [Mark Overmeer <markov@cpan.org>]. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://dev.perl.org/licenses/
2018-06-01 perl v5.28.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.