| Net-DRI documentation | Contained in the Net-DRI distribution. |
Net::DRI::Logging::Stderr - STDERR Logging Operations for Net::DRI
This documentation refers to Net::DRI::Logging::Stderr version 1.01
This class dumps all logging information to STDERR.
$dri->new({..., logging => 'stderr' ,...});
All mandated by superclass Net::DRI::Logging.
None.
None.
This modules has to be used inside the Net::DRI framework and needs the following composants:
None
No known bugs. Please report problems to author (see below) or use CPAN RT system. Patches are welcome.
For now, support questions should be sent to:
<netdri@dotandco.com>
Please also see the SUPPORT file in the distribution.
<http://www.dotandco.com/services/software/Net-DRI/>
Patrick Mevzek, <netdri@dotandco.com>
Copyright (c) 2009 Patrick Mevzek <netdri@dotandco.com>. All rights reserved.
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.
See the LICENSE file that comes with this distribution for more details.
| Net-DRI documentation | Contained in the Net-DRI distribution. |
## Domain Registry Interface, STDERR Logging operations for Net::DRI ## ## Copyright (c) 2009 Patrick Mevzek <netdri@dotandco.com>. All rights reserved. ## ## This file is part of Net::DRI ## ## Net::DRI 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. ## ## See the LICENSE file that comes with this distribution for more details. # # # #################################################################################################### package Net::DRI::Logging::Stderr; use strict; use warnings; use base qw/Net::DRI::Logging/; use IO::Handle; our $VERSION=do { my @r=(q$Revision: 1.1 $=~/\d+/gxm); sprintf '%d'.('.%02d' x $#r), @r; }; *STDERR->autoflush(); #################################################################################################### sub name { return 'stderr'; } sub setup_channel { my ($self,$source,$type,$data)=@_; return; } ## nothing to do really sub output { my ($self,$level,$type,$data)=@_; if ($self->should_log($level)) { *STDERR->print($self->tostring($level,$type,$data),"\n"); } return; } #################################################################################################### 1; __END__