tisTrace
Trace.
Not logged in
namespace eval ::tis {

namespace eval trace {

Proc Really.

This is the proc that gets invoked to really do the tracing.

Arguments:

Returns:

Side effects:

Notes:

proc Really {msg} {
    set level [expr {[info level]-1}]
    set decoLen [string length $msg]
    if {$decoLen >= 68} {
        set decoLen 68
    }
    puts [string repeat "+" $decoLen]
    puts "LEVEL = $level"
    puts $msg
    puts [string repeat "-" $decoLen]
    return
}

Proc on.

Activates the invokations to proc do.

Arguments:

Returns:

Side effects:

proc on {} {
    proc ::tis::trace::do {args} {
        return [::tis::trace::Really {*}$args]
    }
    return
}

Proc off.

Deactivates the invokations to proc do.

Arguments:

Returns:

Side effects:

proc off {} {
    proc ::tis::trace::do {args} {}
    return
}

Proc boot.

Sets up the tracing subsystem in tis.

Arguments:

Returns:

Side effects:

Notes:

proc boot {} {
    off
    proc ::tis::trace::yes {args} {
        return [::tis::trace::Really {*}$args]
    }
    proc ::tis::trace::no {args} {}
    return
}

}

}