Daniel David Parry > Apache-Sling-0.17 > Apache::Sling::Print

Download:
Apache-Sling-0.17.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.17   Source   Latest Release: Apache-Sling-0.27

NAME ^

Apache::Sling::Print - functions used for printing by the Apache::Sling library.

ABSTRACT ^

useful utility functions for general print to screeen and print to file functionality.

METHODS ^

print_with_lock

Selects printing to standard out or to log with locking based on whether a suitable log file is defined.

print_file_lock

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.

print_lock

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.

print_result

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.

date_time

Returns a current date time string, which is useful for log timestamps.

USAGE ^

use Apache::Sling::Print;

DESCRIPTION ^

Utility library providing useful utility functions for general Print functionality.

REQUIRED ARGUMENTS ^

None required.

OPTIONS ^

n/a

DIAGNOSTICS ^

n/a

EXIT STATUS ^

0 on success.

CONFIGURATION ^

None required.

DEPENDENCIES ^

INCOMPATIBILITIES ^

None known.

BUGS AND LIMITATIONS ^

None known.

AUTHOR ^

Daniel David Parry <perl@ddp.me.uk>

LICENSE AND COPYRIGHT ^

LICENSE: http://dev.perl.org/licenses/artistic.html

COPYRIGHT: (c) 2011 Daniel David Parry <perl@ddp.me.uk>

syntax highlighting: