package Log::Dispatch::Null;

use strict;
use warnings;

use Log::Dispatch::Output;

use base qw( Log::Dispatch::Output );

our $VERSION = '2.25';


sub new
{
    my $proto = shift;
    my $class = ref $proto || $proto;

    my $self = bless {}, $class;

    $self->_basic_init(@_);

    return $self;
}

sub log_message { }


1;

__END__

=head1 NAME

Log::Dispatch::Null - Object that accepts messages and does nothing

=head1 SYNOPSIS

  use Log::Dispatch;

  my $null = Log::Dispatch->new( outputs => [ Null => {} ] );

  $null->emerg( "I've fallen and I can't get up" );

=head1 DESCRIPTION

This class provides a null logging object. Messages can be sent to the
object but it does nothing with them.

=head1 AUTHOR

Dave Rolsky, <autarch@urth.org>

=cut

