List Info

Thread: ActiveState Tcl Log package - execute commands?




ActiveState Tcl Log package - execute commands?
user name
2007-08-22 05:40:28

Just wondering if the ActiveState log package can control  execution of commands as well as output messages.

e.g I only want "[ parray env ]" executed when debug is on.

# switch on
#::log::lvSuppressLE emergency 0
#switch off
::log::lvSuppressLE emergency 1
::log::lvColor debug red

::log::log debug "[ parray env ]" 

Problem is "[parray env]" gets executed when debug is off.



Re: ActiveState Tcl Log package - execute commands?
country flaguser name
Germany
2007-08-22 07:16:08
Patrick Finnegan schrieb:
> ::log::log debug "[ parray env ]" 

Consider using [::log::logarray debug env] instead.

kind regards
-- 
Matthias Kraft
Software AG, Germany
_______________________________________________
ActiveTcl mailing list
ActiveTcllistserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs

Re: ActiveState Tcl Log package - execute commands?
user name
2007-08-22 07:27:57


On 22/08/07, Matthias Kraft < Matthias.Kraftsoftwareag.com">Matthias.Kraftsoftwareag.com> wrote:
Patrick Finnegan schrieb:
&gt; ::log::log debug "[ parray env ]"

Consider using [::log::logarray debug env] instead.

kind regards
--
Matthias Kraft
Software AG, Germany


Thanks that worked.&nbsp;

I would also like to trap the results of a command as well as variable.&nbsp; Something like:

::log::log debug "[ info script ]"&nbsp;

Is that possible?

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )