HTTP-Daemon-Threaded

 view release on metacpan or  search on metacpan

lib/HTTP/Daemon/Threaded/Logger.pm  view on Meta::CPAN


@simplex
@param $lifetime	lifetime in hours.

@return		none


=end classdoc

=cut
sub updateLifetime {
	$_[0]->{Lifetime} = $_[1];
}
=pod

=begin classdoc

Update logfile maximum size. Called from WebClient.

@simplex
@param $maxsize	Maximum size in megabytes.

@return		none


=end classdoc

=cut
sub updateMaxSize {
	$_[0]->{MaxSize} = $_[1];
}
=pod

=begin classdoc

Update logfile name. Called from WebClient.
Truncates the existing logfile.

@simplex
@param $path	new logfile name

@return		none


=end classdoc

=cut
sub updatePath {
	my ($self, $newpath) = @_;

	$self->truncate($newpath);
	$self->{Path} = $newpath;
}

1;

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.380 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )