Unix and Linux Discussions Tagged with amp |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
7,487 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,640 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
2,912 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
9,214 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,148 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,242 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
29,745 |
Solaris |
|
|
|
5 |
2,347 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
1,015 |
What is on Your Mind? |
|
|
|
33 |
26,190 |
Solaris |
|
|
|
2 |
3,465 |
Solaris |
|
|
|
2 |
3,297 |
IP Networking |
|
|
|
2 |
2,857 |
AIX |
|
|
|
0 |
1,453 |
Software Releases - RSS News |
|
|
|
2 |
7,179 |
Solaris |
|
|
|
2 |
1,976 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,809 |
Programming |
|
|
|
0 |
2,159 |
OS X Support RSS |
|
|
|
1 |
28,195 |
Shell Programming and Scripting |
|
|
|
0 |
1,860 |
Solaris BigAdmin RSS |
|
|
|
7 |
11,947 |
Ubuntu |
|
|
|
0 |
1,208 |
Complex Event Processing RSS News |
|
|
|
0 |
1,700 |
Cartoons for Geeks |
|
|
|
0 |
1,109 |
Software Releases - RSS News |
|
|
|
6 |
4,463 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
1,354 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
2,236 |
Cartoons for Geeks |
|
|
|
0 |
1,627 |
Complex Event Processing RSS News |
|
|
|
0 |
2,252 |
Cartoons for Geeks |
|
|
|
0 |
2,912 |
HP Server News and Podcasts RSS |
|
|
|
0 |
1,555 |
MySQL DevZone RSS |
|
|
|
5 |
6,215 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,573 |
Complex Event Processing RSS News |
|
|
|
3 |
5,464 |
UNIX and Linux Applications |
|
|
|
6 |
9,749 |
Solaris |
|
|
|
0 |
2,141 |
Cartoons for Geeks |
|
|
|
0 |
1,669 |
Cartoons for Geeks |
|
|
|
2 |
4,539 |
OS X (Apple) |
|
|
|
3 |
2,088 |
Shell Programming and Scripting |
|
|
|
0 |
846 |
Software Releases - RSS News |
Courier::Filter::Logger::IOHandle(3pm) User Contributed Perl Documentation Courier::Filter::Logger::IOHandle(3pm)
NAME
Courier::Filter::Logger::IOHandle - I/O handle logger for the Courier::Filter framework
SYNOPSIS
use Courier::Filter::Logger::IOHandle;
my $logger = Courier::Filter::Logger::IOHandle->new(
handle => $handle
);
# For use in an individual filter module:
my $module = Courier::Filter::Module::My->new(
...
logger => $logger,
...
);
# For use as a global Courier::Filter logger object:
my $filter = Courier::Filter->new(
...
logger => $logger,
...
);
DESCRIPTION
This class is an I/O handle logger class for use with Courier::Filter and its filter modules.
Constructor
The following constructor is provided:
new(%options): returns Courier::Filter::Logger::IOHandle
Creates a new logger that logs messages as lines to an I/O handle.
%options is a list of key/value pairs representing any of the following options:
handle
Required. The I/O handle or IO::Handle object to which log messages should be written.
timestamp
A boolean value controlling whether every log message line should be prefixed with a timestamp (in local time, in ISO format).
Defaults to false.
Instance methods
The following instance methods are provided:
log_error($text): throws Perl exceptions
Logs the error message given as $text (a string which may contain newlines). Prefixes each line with a timestamp if the "timestamp"
option has been set through the constructor.
log_rejected_message($message, $reason): throws Perl exceptions
Logs the Courier::Message given as $message as having been rejected due to $reason (a string which may contain newlines).
SEE ALSO
Courier::Filter::Logger, Courier::Filter::Overview.
For AVAILABILITY, SUPPORT, and LICENSE information, see Courier::Filter::Overview.
AUTHOR
Julian Mehnle <julian@mehnle.net>
perl v5.14.2 2011-12-27 Courier::Filter::Logger::IOHandle(3pm)