Class::Scaffold::Log - large-scale OOP application support
Class::Scaffold::Log->new;
instance
my $obj = Class::Scaffold::Log->instance; my $obj = Class::Scaffold::Log->instance(%args);
Creates and returns a new object. The object will be a singleton, so repeated calls to the constructor will always return the same object. The constructor will accept as arguments a list of pairs, from component name to initial value. For each pair, the named component is initialized by calling the method of the same name with the given value. If called with a single hash reference, it is dereferenced and its key/value pairs are set as described before.
clear_filename
$obj->clear_filename;
Clears the value.
clear_max_level
$obj->clear_max_level;
clear_output
$obj->clear_output;
clear_pid
$obj->clear_pid;
Clears the boolean value by setting it to 0.
clear_timestamp
$obj->clear_timestamp;
filename
my $value = $obj->filename; $obj->filename($value);
A basic getter/setter method. If called without an argument, it returns the value. If called with a single argument, it sets the value.
filename_clear
$obj->filename_clear;
max_level
my $value = $obj->max_level; $obj->max_level($value);
max_level_clear
$obj->max_level_clear;
output
my $value = $obj->output; $obj->output($value);
A getter/setter method. If called without an argument, it returns the value. If called with a single argument, it appends to the current value.
output_clear
$obj->output_clear;
pid
$obj->pid($value); my $value = $obj->pid;
If called without an argument, returns the boolean value (0 or 1). If called with an argument, it normalizes it to the boolean value. That is, the values 0, undef and the empty string become 0; everything else becomes 1.
pid_clear
$obj->pid_clear;
pid_set
$obj->pid_set;
Sets the boolean value to 1.
set_pid
$obj->set_pid;
set_timestamp
$obj->set_timestamp;
timestamp
$obj->timestamp($value); my $value = $obj->timestamp;
timestamp_clear
$obj->timestamp_clear;
timestamp_set
$obj->timestamp_set;
No bugs have been reported.
Please report any bugs or feature requests to <bug-class-scaffold@rt.cpan.org>, or through the web interface at http://rt.cpan.org.
<bug-class-scaffold@rt.cpan.org
See perlmodinstall for information and options on installing Perl modules.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>.
Marcel Grünauer, <marcel@cpan.org>
<marcel@cpan.org>
Florian Helmberger <fh@univie.ac.at>
<fh@univie.ac.at>
Achim Adam <ac@univie.ac.at>
<ac@univie.ac.at>
Mark Hofstetter <mh@univie.ac.at>
<mh@univie.ac.at>
Heinz Ekker <ek@univie.ac.at>
<ek@univie.ac.at>
Copyright 2004-2009 by Marcel Grünauer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Class::Scaffold, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::Scaffold
CPAN shell
perl -MCPAN -e shell install Class::Scaffold
For more information on module installation, please visit the detailed CPAN module installation guide.