The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.

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

SEE ALSO

Device::Modem Device::Modem::Log::Syslog