File 'gui/logger.cls' (part of 'Pool_GuiBase')


Home | Packages | Files | Procedures | Classes | Keywords | External packages


Written by
Andreas Kupries
Description
Logger based upon modified text widget. Suitable for usage in conjunction with ::pool::syslog::syslog.
Keywords
syslog, log widget

Class 'logger'

Superclasses
widget
Options
level, slow, theight, twidth
Membervariables
lcolor
Methods
TrackTHeight, TrackTWidth, clear, createSubwidgets, levelcolor, log, logger

-level
The lowest level a message must have to be displayed by this widget
-slow
Boolean flag. If set this widget will cause an update cycle of the display after each message added and displayed.
-theight
Width to be requested by the internal text-widget.
-twidth
Width to be requested by the internal text-widget.

lcolor
Array mapping from level names to the colors used as background for the messages of this level.

TrackTHeight (o oldv)

Configure procedure. Propagates changes to the height of the widget into the display.
Argument: oThe changed option.
Argument: oldvThe old value of the option.

TrackTWidth (o oldv)

Configure procedure. Propagates changes to the width of the widget into the display.
Argument: oThe changed option.
Argument: oldvThe old value of the option.

clear ()

Clear log

createSubwidgets ()

Create and pack the internally used widgets (text, scrollbar)

levelcolor (level color)

Changes the color used to display messages of level. Affects all messages, even already added ones.
Argument: levelThe name of the level to change the color for.
Argument: colorThe new color to use.

log (level text)

Adds text to log, under the given level. Ignores all messages with a level below level.
Argument: levelMessage level, used as tag.
Argument: textText to log

logger ()

Constructor. Reads the level colors from the syslog facility of Pool, see base/syslog.tcl, to allow changes without affecting the defaults.


Generated by AutoDoc 2.1 at 02/20/1999, invoked by Andreas Kupries