Bio::GMOD::Util::Status - Message processing for Bio::GMOD
None. See below.
Bio::GMOD::Util::Status provides a variety of methods for processing messages and handling errors throughout Bio::GMOD.
Log a message to STDERR. The message will be prefaced with the date and time.
Options: -msg The message to log -die Die after logging the message
Log a message to STDERR but with a small flag to set it off from other messages.
Options: -msg The message to log
Test a return value for success, logging (and dying) a failure or passing a warning if successful.
Return a formatted date string.
Return a formatted string showing date, condition tested and result. This function is used predominantly for monitoring the status of an installation, generating a clean string for sending in emails, logging, etc.
eg: [22 Feb 2005 08:22:22] Restarting mysqld ............. [OK] Options: -timing usually one of initial (status before test) or final (status after test) -msg The actual test message -status The status of the result (ie OK, Failed)
Set various internal status flags of Bio::GMOD::Monitor::* objects. These include "is_up", "is_down", "initial_status", "final_status" as described for status_string above. See Bio::GMOD::Monitor for additional details in who these flags are used to indicate the status of particular servers or services.
Todd W. Harris <firstname.lastname@example.org>.
Copyright (c) 2003-2005 Cold Spring Harbor Laboratory.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.