NAME

Log::Log4perl::NDC::Scoped - Scope aware NDC messages for Log4perl

SYNOPSIS

use Log::Log4perl::NDC::Scoped qw(push_ndc);

my $ndc = push_ndc('tag1', 'tag2'); 

SUBROUTINES

This module exports no subroutines by default. The following must be explicitly imported when loading the module.

push_ndc($text1, $text2, ...)

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)

AUTHORS

Joni Salonen

Rafael Porres Molina

LICENCE AND COPYRIGHT

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.