Puppet::Log

Puppet::Log provides a log facility with an optional Tk display.
Download

Puppet::Log Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Dominique Dumont
  • Publisher web site:

Puppet::Log Tags


Puppet::Log Description

Puppet::Log provides a log facility with an optional Tk display. Puppet::Log provides a log facility with an optional Tk display.This class implements a log facility with an optional Tk display.I.e once the class is created, you can log messages in it, but the Tk display does no need to be created at the same time. You may invoke later only when you need it.When the Tk display is not invoked, the log can be either printed on STDOUT or warned on STDERR (or stay hidden). But in any case, the log message will be stored in the class so that all log messages can be retrieved later by the user or by the Tk display when invoked.Once the Tk display is invoked, it will be updated by new logs.Constructor parameters:· title: Title of the Tk log display (optional)· name: Name of the log used when printing on STDOUT or STDERR (optional)· how: Specifies what to do when a log is sent to the object (either print on STDOUT, warn on STDERR). By default the logs will not be printed or warned. (optional)· help The argument may be a string or a sub reference. When the help menu is invoked, either the help string will be displayed in a Tk::Dialog box or the sub will be run. In this case it is the user's responsability to provide a readable help from the sub. (See "help" in Tk::Multi::Manager for further details)Puppet classes are a set of utility classes which can be used by any object. If you use directly the Puppet::*Body class, you get the plain functionnality. And if you use the Puppet::* class, you can get the same functionnality and a Tk Gui to manage it.The basic idea is when you construct a Puppet::* object, you have all the functionnality of the object without the GUI. Then, when the need arises, you may (or the class may decide to) open the GUI of the object. On the other hand, if the need does not arise, you may create a lot of objects without cluttering your display. Requirements: · Perl


Puppet::Log Related Software