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
Zonemaster::Engine::Logger(3) User Contributed Perl Documentation Zonemaster::Engine::Logger(3)

Zonemaster::Engine::Logger - class that holds Zonemaster::Engine::Logger::Entry objects.

    my $logger = Zonemaster::Engine::Logger->new;
    $logger->add( TAG => {some => 'arguments'});

Construct a new object.

    my $logger = Zonemaster::Engine::Logger->new;
    

A reference to an array holding Zonemaster::Engine::Logger::Entry objects.
If this attribute is set, the given code reference will be called every time a log entry is added. The referenced code will be called with the newly created entry as its single argument. The return value of the called code is ignored.

If the called code throws an exception, and the exception is not an object of class Zonemaster::Engine::Exception (or a subclass of it), the exception will be logged as a system message at default level "CRITICAL" and the callback attribute will be cleared.

If an exception that is of (sub)class Zonemaster::Engine::Exception is called, the exception will simply be rethrown until it reaches the code that started the test run that logged the message.

Adds an entry with the given tag and arguments to the logger object.

$module is optional and will default to $Zonemaster::Engine::Logger::MODULE_NAME if not set.

$testcase is optional and will default to $Zonemaster::Engine::Logger::TEST_CASE_NAME if not set.

The variables $Zonemaster::Engine::Logger::MODULE_NAME and $Zonemaster::Engine::Logger::TEST_CASE_NAME can be dynamically set to change the default module ("System") or test case name ("Unspecified").

Returns a JSON-formatted string with all the stored log entries. If an argument is given and is a known severity level, only messages with at least that level will be included.
Returns the maximum log level from the entire log as the level string.

Set the logger's start time to the current time.
Remove all known log entries.
Clear the test level cached configuration.

_check_filter($entry)
Apply the "logfilter" defined rules to the entry. See "logfilter" in Zonemaster::Engine::Profile.
2025-02-24 perl v5.40.2

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.