Logoj0ke.net Open Build Service > Projects > server:monitoring > nagios-plugins-nwc-health > Binaries > nagios-plugins-nwc-health-8... > Dependencies
Sign Up | Log In

Dependency of nagios-plugins-nwc-health-8.0-1.1.src.rpm

Name: perl-MooseX-Log-Log4perl

Project: openSUSE_13.2

Repository: oss

Title: A Logging Role for Moose based on Log::Log4perl

Description:
A logging role building a very lightweight wrapper to the Log::Log4perl
manpage for use with your the Moose manpage classes. The initialization of
the Log4perl instance must be performed prior to logging the first log
message. Otherwise the default initialization will happen, probably not
doing the things you expect.

For compatibility the 'logger' attribute can be accessed to use a common
interface for application logging.

Using the logger within a class is as simple as consuming a role:

package MyClass;
use Moose;
with 'MooseX::Log::Log4perl';

sub dummy {
my $self = shift;
$self->log->info("Dummy log entry");
}

The logger needs to be setup before using the logger, which could happen in
the main application:

package main;
use Log::Log4perl qw(:easy);
use MyClass;

BEGIN { Log::Log4perl->easy_init() };

my $myclass = MyClass->new();
$myclass->log->info("In my class"); # Access the log of the object
$myclass->dummy; # Will log "Dummy log entry"

Version: 0.46

Release: 4.1.3

Architecture: noarch

Size: 16.9 KB

Build Time: 2014-10-06 18:34:29 +0200 (over 9 years ago)

Provides

Symbol Required by
perl(MooseX::Log::Log4perl)...
perl(MooseX::Log::Log4perl:...
perl-MooseX-Log-Log4perl = ...

Requires

Symbol Provided by
perl(:MODULE_COMPAT_5.20.1) perl
perl(Any::Moose) >= 0.12 perl-Any-Moose
perl(Log::Log4perl) >= 1.13 perl-Log-Log4perl