SUMMARY: CONSTR | METHOD | DETAIL: CONSTR | METHOD |
Classes which use a Logger object should inherit the HTTP::Daemon::Threaded::Logable class. While this class provides a default implementation, applications should implement their own subclasses, and create instances to be passed to HTTP::Daemon::Threaded as either the EventLogger and/or WebLogger parameters.
Copyright© 2006, Dean Arnold, Presicient Corp., USA
All rights reserved.
Licensed under the Academic Free License version 2.1, as specified in the License.txt file included in this software package, or at OpenSource.org.
Unless otherwise noted, $self
is the object instance variable.
Constructor Summary |
---|
new(AptTimeout => value, Path => value, MaxSize => value, Lifetime => value)
Opens the logfile |
Method Summary |
---|
close()
Close the logfile |
get_simplex_methods()
Overrides Thread::Apartment::Server::get_simplex_methods() |
log($msg)
Append a log message to the logfile |
truncate($newpath)
Truncate the logfile |
updateLifetime($lifetime)
Update logfile lifetime |
updateMaxSize($maxsize)
Update logfile maximum size |
updatePath($path)
Update logfile name |
Constructor Details |
---|
new(AptTimeout => value, Path => value, MaxSize => value, Lifetime => value)
AptTimeout
=> maximum Thread::Apartment proxy method call timeout
Path
=> pathname of logfile
MaxSize
=> maximum size of logfile, in megabytes
Lifetime
=> maximum lifetime of logfile, in hours
Method Details |
---|
close()
get_simplex_methods()
log($msg)
$msg
- log message text
truncate($newpath)
$newpath
- optional new logfile path
updateLifetime($lifetime)
$lifetime
- lifetime in hours.
updateMaxSize($maxsize)
$maxsize
- Maximum size in megabytes.
updatePath($path)
$path
- new logfile name