Ignore:
Timestamp:
Oct 18, 2012, 9:03:17 PM (12 years ago)
Author:
mmc
Message:

Added the Rappture::Logger facility and updated many (not all)
of the input/output controls to use it. This logs user activity
so you can see how they are interacting with the widgets during
the course of a session. If the RAPPTURE_LOG variable is set to
a directory (like /tmp), then Rappture creates a unique log file
in this directory for each tool session and writes logging info
into that file. The middleware ensures that the file is write-only
so that private activity information doesn't get out to people who
try to snoop around.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/loader.tcl

    r3177 r3186  
    3434    protected method _downloadValues {}
    3535    protected method _tooltip {}
     36    protected method _log {}
    3637
    3738    private method SetDefaultValue { value }
     
    6768
    6869    itk_component add combo {
    69         Rappture::Combobox $itk_interior.combo -editable no
     70        Rappture::Combobox $itk_interior.combo -editable no \
     71            -interactcommand [itcl::code $this _log]
    7072    } {
    7173        usual
     
    427429
    428430# ----------------------------------------------------------------------
     431# USAGE: _log
     432#
     433# Used internally to send info to the logging mechanism.  Calls the
     434# Rappture::Logger mechanism to log the change to this input.
     435# ----------------------------------------------------------------------
     436itcl::body Rappture::Loader::_log {} {
     437    Rappture::Logger::log input $_path [$itk_component(combo) value]
     438}
     439
     440# ----------------------------------------------------------------------
    429441# USAGE: _uploadValue ?<key> <value> <key> <value> ...?
    430442#
Note: See TracChangeset for help on using the changeset viewer.