
Log::Dispatch::MacGrowl - Log messages via Growl

use Log::Dispatch::MacGrowl;
my $growl = Log::Dispatch::MacGrowl->new(
name => 'growl',
min_level => 'debug',
app_name => 'MyApp',
title => 'essential info !',
priority => 0,
sticky => 1,
icon_file => '/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertCautionIcon.icns',
);
$growl->log( level => 'alert', message => "Hello, Again." );

This module allows you to pass messages to Growl using Mac::Growl.

This method takes a hash of parameters. The following options are acceptable.
The name of the object. Required.
The minimum logging level this object will accept. See the Log::Dispatch documentation for more information. Required.
The maximum logging level this obejct will accept. See the Log::Dispatch documentation for more information. This is not required. By default the maximum is the highest possible level (which means functionally that the object has no maximum).
The application name registered to Growl. By default, the package name (= Log::Dispatch::MacGrowl) will be registered.
The title shown on the notification window. By default, the script name will be displayed.
The priority number (range from -2 for low to 2 for high) passed to Growl. By default, 0 (normal) will be passed.
The stickiness (boolean value) passed to Growl. By default, 1 (sticky) will be passed.
The icon file (.icns) path shown on each notification window. By default, nothing will be passed.
Sends a message to the appropriate output. Generally this shouldn't be called directly but should be called through the log() method (in Log::Dispatch::Output).

Log::Dispatch, Mac::Growl

Ryo Okamoto <ryo at aquahill dot net>