Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

log::agent::driver::default(3pm) [debian man page]

Agent::Driver::Default(3pm)				User Contributed Perl Documentation			       Agent::Driver::Default(3pm)

NAME
Log::Agent::Driver::Default - default logging driver for Log::Agent SYNOPSIS
# Implicit use use Log::Agent; logconfig(-prefix => "prefix"); # optional # Explicit use use Log::Agent; require Log::Agent::Driver::Default; my $driver = Log::Agent::Driver::Default->make("prefix"); logconfig(-driver => $driver); DESCRIPTION
The default logging driver remaps the logxxx() operations to their default Perl counterpart. For instance, logerr() will issue a warn() and logwarn() will call warn() with a clear "WARNING: " emphasis (to distinguish between the two calls). The only routine of interest here is the creation routine: make($prefix) Create a Log::Agent::Driver::Default driver whose prefix string will be $prefix. When no prefix is configured, the first letter of each logged string will be uppercased. CHANNELS
The "error", "output" and "debug" channels all go to STDERR. BUGS
If logdie() is used within an eval(), the string you will get in $@ will be prefixed. It's not really a bug, simply that wrapping a code into eval() and parsing $@ is poor's man exception handling which shows its limit here: since the programmer using logdie() cannot foresee which driver will be used, the returned string cannot be determined precisely. Morality: use die() if you mean it, and document the string as an exception. AUTHOR
Raphael Manfredi <Raphael_Manfredi@pobox.com> SEE ALSO
Log::Agent::Driver(3), Log::Agent(3). perl v5.10.0 2009-07-23 Agent::Driver::Default(3pm)

Check Out this Related Man Page

Agent::Driver::Fork(3pm)				User Contributed Perl Documentation				  Agent::Driver::Fork(3pm)

NAME
Log::Agent::Driver::Fork - dummy driver for forking output to multiple drivers SYNOPSIS
use Log::Agent; require Log::Agent::Driver::Fork; require Log::Agent::Driver::Foo; require Log::Agent::Driver::Bar; my $driver = Log::Agent::Driver::Fork->make( Log::Agent::Driver::Foo->make( ... ), Log::Agent::Driver::Bar->make( ... ) ); logconfig(-driver => $driver); DESCRIPTION
This driver merely acts a multiplexer for logxxx() calls, duplicating them and distributing them to other drivers. The only routine of interest here is the creation routine: make(@drivers) Create a Log::Agent::Driver::Fork driver that duplicates logxxx() calls and distributes them to the drivers in @drivers. The arguments must be the return value of the make() call for the client drivers. NOTES
Many thanks go to Daniel Lundin and Jason May who proposed this module independently. Eventually, logconfig() will support multiple drivers directly. But, for now, this solution requires no change to the existing interface. AUTHOR
Mark Rogaski <mrogaski@pobox.com> LICENSE
Copyright (C) 2002 Mark Rogaski; all rights reserved. See Log::Agent(3) or the README file included with the distribution for license information. SEE ALSO
Log::Agent::Driver(3), Log::Agent(3). perl v5.10.0 2009-07-23 Agent::Driver::Fork(3pm)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Job Scheduler Agent-Based.

Hi Gurus, I'm looking for a real Jobs Scheduler Agent-based. My customer is using cron, but need something a little bit clever, where you could configure chain of process ("script x will run if script y is finished", etc). Of course I know solutions like control-M (from BMC... (1 Reply)
Discussion started by: maquinte
1 Replies

2. Linux

Port Linux Driver to Unix

I looking for someone who can help me port a Linux Driver to a OpenBSD( OS X ) Unix Driver. The driver is for a Logic Controls LD9000 USB Customer Display. The currently don't have a driver for the mac operating system, but they do however have one for the Linux OS. So, I am just trying to... (8 Replies)
Discussion started by: ghost1
8 Replies

3. Solaris

VCS Log

Hi All, Can anyone help me to analyse this VCS log. One of my applications failover suddenly and I need to find out the reason behind this. 2009/04/09 10:58:57 VCS ERROR V-16-2-13067 (CS49PAPS2) Agent is calling clean for resource(Web-ebill2app) because the resource became OFFLINE... (4 Replies)
Discussion started by: ronny_nch
4 Replies

4. Shell Programming and Scripting

Problem in copy files to a folder

Hi all, cp -r /tmp/Agent/* /apps/opt/Agent/TEST When I copy files under /tmp/Agent using this command Files are getting copied to Agent folder also but I need only in the TEST folder. Is there any way to fix this issue??\ Thanks in advance Ananth (4 Replies)
Discussion started by: Ananthdoss
4 Replies