NAME
Device::Modem::Log::File - Device::Modem log hook class for logging devices activity to text files
SYNOPSIS
use Device::Modem;
my $box = Device::Modem->new( log => 'file', ... );
my $box = Device::Modem->new( log => 'file,name=/var/log/mymodem.log', ... );
...
DESCRIPTION
This is meant for an example log class to be hooked to Device::Modem to provide one's favourite logging mechanism. You just have to implement your own new()
, write()
and close()
methods.
Default text file is /var/log/modem.log
. On Windows platforms, this goes into [WINDOWS]/temp/modem.log
.
Loaded automatically by Device::Modem class when an object is instantiated, and it is the default logging mechanism for Device::Modem class.
REQUIRES
Device::Modem
EXPORT
None
AUTHOR
Cosimo Streppone, cosimo@cpan.org
COPYRIGHT
This library is free software; you can only redistribute it and/or modify it under the same terms as Perl itself.