Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Tomcat42
perl-Catalyst-Log-Log4perl
perl-Catalyst-Log-Log4perl.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Catalyst-Log-Log4perl.spec of Package perl-Catalyst-Log-Log4perl
# # spec file for package perl-Catalyst-Log-Log4perl # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: perl-Catalyst-Log-Log4perl Version: 1.06 Release: 0 %define cpan_name Catalyst-Log-Log4perl Summary: DEPRECATED (see Log::Log4perl::Catalyst) License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Catalyst-Log-Log4perl/ Source0: http://www.cpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Catalyst) >= 5.60 BuildRequires: perl(Data::Dump) BuildRequires: perl(Log::Log4perl) >= 1.04 BuildRequires: perl(Module::Install) BuildRequires: perl(MRO::Compat) BuildRequires: perl(Params::Validate) Requires: perl(Catalyst) >= 5.60 Requires: perl(Data::Dump) Requires: perl(Log::Log4perl) >= 1.04 Requires: perl(MRO::Compat) Requires: perl(Params::Validate) %{perl_requires} %description This module provides a the Catalyst::Log manpage implementation that uses the Log::Log4perl manpage as the underlying log mechanism. It provides all the methods listed in the Catalyst::Log manpage, with the exception of: levels enable disable These methods simply return 0 and do nothing, as similar functionality is already provided by the Log::Log4perl manpage. These methods will all instantiate a logger with the component set to the package who called it. For example, if you were in the MyApp::C::Main package, the following: package MyApp::C::Main; sub default : Private { my ( $self, $c ) = @_; my $logger = $c->log; $logger->debug("Woot!"); } Would send a message to the Myapp.C.Main the Log::Log4perl manpage component. See the Log::Log4perl manpage for more information on how to configure different logging mechanisms based on the component. %prep %setup -q -n %{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes example.conf README %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor