Tk Library Source Code

View Ticket
Login
Ticket UUID: 879451
Title: add better introspection to logger
Type: RFE Version: None
Submitter: mic42 Created on: 2004-01-18 21:20:36
Subsystem: log Assigned To: davidw
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2004-03-10 18:17:22
Resolution: Closed By: davidw
    Closed on: 2004-03-10 11:17:22
Description:
Hi,

I would like to see more introspection for the logger
command. 

At the moment only logger::services and
${log}::services exist

I would like to see this additions:

::logger::levels -- 
Return the currently defined levels accepted by logger
enable/disable.

${log}::enabled --
Return 1 if the service is enabled 0 otherwise.

${log}::currentloglevel -- (bad name?)
Return the current log level for this service .

And maybe:

${log}::delproc --
Return the current deleteproc if no argument was given.

Similar behaviour for the procs for the log levels.
(BTW. What is the rationale for not using a proc name
as argument for logproc but creating a new proc? Speed?
)

Michael
User Comments: davidw added on 2004-03-10 18:17:22:
Logged In: YES 
user_id=240

Patch was added and this was included in the most recent
release.