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
XT::Files::Role::Logger(3) User Contributed Perl Documentation XT::Files::Role::Logger(3)

XT::Files::Role::Logger - logging role

Version 0.002

    use Role::Tiny::With;
    with 'XT::Files::Role::Logger';
    $self->log($message);
    $self->log_debug($message);
    $self->log_fatal($message);

This Role::Tiny role adds logging functionality to all XT::Files classes.

Logs the message with Test::Builders "note" method. This should be used for all output instead of just printing it to work nicely with the Perl testing environment.

Logs the message with "log" but only if the environment variable "XT_FILES_DEBUG" is set and true.

Logs the message with "log", then dies with Carps "confess".

Returns the prefix that is prepended to every logged message. Defaults to the objects class.

Method can be overwritten to change the prefix.

XT::Files, Carp, Test::Builder

Please report any bugs or feature requests through the issue tracker at <https://github.com/skirmess/XT-Files/issues>. You will be notified automatically of any progress on your issue.

This is open source software. The code repository is available for public review and contribution under the terms of the license.

<https://github.com/skirmess/XT-Files>

  git clone https://github.com/skirmess/XT-Files.git

Sven Kirmess <sven.kirmess@kzone.ch>

This software is Copyright (c) 2018-2019 by Sven Kirmess.

This is free software, licensed under:

  The (two-clause) FreeBSD License
2019-08-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.