Apache::Sling::Print - functions used for printing by the Apache::Sling library.
useful utility functions for general print to screeen and print to file functionality.
Selects printing to standard out or to log with locking based on whether a suitable log file is defined.
Prints out a specified message to a specified file with locking in an attempt to prevent competing threads or forks from stepping on each others toes when writing to the file.
Prints out a specified message with locking in an attempt to prevent competing threads or forks from stepping on each others toes when printing to stdout.
Takes an object (user, group, site, etc) and prints out it's Message value, appending a new line. Also looks at the verbosity level and if greater than or equal to 1 will print extra information extracted from the object's Response object. At the moment, won't print if log is defined, as the prints to log happen elsewhere. TODO tidy that up.
Returns a current date time string, which is useful for log timestamps.
use Apache::Sling::Print;
Utility library providing useful utility functions for general Print functionality.
None required.
n/a
0 on success.
None known.
Daniel David Parry <perl@ddp.me.uk>
LICENSE: http://dev.perl.org/licenses/artistic.html
COPYRIGHT: (c) 2011 Daniel David Parry <perl@ddp.me.uk>
To install Apache::Sling, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::Sling
CPAN shell
perl -MCPAN -e shell install Apache::Sling
For more information on module installation, please visit the detailed CPAN module installation guide.