Log::Log4perl::NDC::Scoped - Scope aware NDC messages for Log4perl
use Log::Log4perl::NDC::Scoped qw(push_ndc); my $ndc = push_ndc('tag1', 'tag2');
This module exports no subroutines by default. The following must be explicitly imported when loading the module.
Pushes an NDC in the scope where it is called and it pops it automatically when the scope is abandoned or the variable explicitly undefined. It separates the texts pushed with the value of $Log::Log4perl::NDC::Scoped::SEPARATOR variable (a pipe by default)
Joni Salonen
Rafael Porres Molina
Copyright (C) 2012-2013 Qindel Formacion y Servicios S.L.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
To install Log::Log4perl::NDC::Scoped, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Log4perl::NDC::Scoped
CPAN shell
perl -MCPAN -e shell install Log::Log4perl::NDC::Scoped
For more information on module installation, please visit the detailed CPAN module installation guide.