GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DEVICE::MODEM::LOG::FILE (3)

.ds Aq ’

NAME

Device::Modem::Log::File - Text files logging plugin for Device::Modem class

CONTENTS

SYNOPSIS



  use Device::Modem;

  my $box = Device::Modem->new( log => file, ... );
  my $box = Device::Modem->new( log => file,name=/tmp/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 /tmp/modem.log. On Windows platforms, this goes into %TEMP%/modem.log or %TMP%/modem.log, whichever is defined. By default, if the folder of the log file does not exist, it is created.

This class is loaded automatically by Device::Modem class when an object is instantiated, and it is the <B>defaultB> logging mechanism for Device::Modem class.

Normally, you should <B>notB> need to use this class directly, because there are many other zillions of modules that do logging better than this.

Also, it should be pondered whether to replace Device::Modem::Log::File and mates with those better classes in a somewhat distant future.

    REQUIRES

Device::Modem

    EXPORTS

None

AUTHOR

Cosimo Streppone, cosimo@cpan.org

COPYRIGHT

(C) 2002 Cosimo Streppone, <cosimo@cpan.org>

This library is free software; you can only redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Device::Modem Device::Modem::Log::Syslog
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DEVICE::MODEM::LOG::FILE (3) 2010-11-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.