NAME

Haver::Logger - POE-based logging service.

SYNOPSIS

use Haver::Logger;
create Haver::Logger (
   levels => {
      alert => 'alert.log',
      error => \*STDERR,
      foo   => new IO::File ('bunnies.log'),
   },
   filter => sub { new POE::Filter::Line },  # optional, default
   driver => sub { new POE::Driver::SysRW }, # optional, default
   alias  => 'Logger' # optional, default
);

# in some POE-state,
$kernel->post('Logger', 'alert', 'bunnies');
$kernel->post('Logger', 'error', 'I have been stolen by aliens');
$kernel->post('Logger', 'foo', 'bar baz <g>');

# When you're done:
$kernel->post('Logger', 'shutdown');

DESCRIPTION

FIXME: Document this.

SEE ALSO

https://gna.org/projects/haver/

AUTHOR

Dylan William Hardison, <dylanwh@tampabay.rr.com>

COPYRIGHT AND LICENSE

Copyright (C) 2004 by Dylan William Hardison

This library 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 library 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 module; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA