Package autodesk_toxik :: Module debug :: Class TraceOptions
[frames] | no frames]

Class TraceOptions

object --+
         |
        TraceOptions

Encapsulates the trace options as an object to perform conversions.

Important: Make sure that DL_LOG_TRACING is set to a relevant output file (file or stdout) if you want to be able to see the trace output.

Nested Classes
  TraceLevel
Instance Methods
 
reset(self)
Reset the tracing manager.
 
off(self)
Turn tracing off.
 
on(self)
Turn tracing on.
 
showAll(self)
Show all trace levels when tracing.
 
hideAll(self)
Hide all trace levels when tracing.
 
setLevels(self, levels)
Set to a particular set of enabled level(s).
 
toggle(self, levels, enable=1)
Enable or disable selected trace level(s), leaving the others untouched.
 
show(self, levels)
Enable selected trace level(s), leaving the others untouched.
 
hide(self, levels)
Disable selected trace level(s), leaving the others untouched.
([str], [str])
getLevels(self)
Returns: A pair of lists, one of enabled levels, and the second for disabled levels.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

setLevels(self, levels)

 

Set to a particular set of enabled level(s).

Parameters:
  • levels (str or list of str) - The enabled level(s).

toggle(self, levels, enable=1)

 

Enable or disable selected trace level(s), leaving the others untouched.

Parameters:
  • levels (str or list of str) - Trace level(s).
  • enable (bool)

show(self, levels)

 

Enable selected trace level(s), leaving the others untouched.

Parameters:
  • levels (str or list of str) - Trace level(s).

hide(self, levels)

 

Disable selected trace level(s), leaving the others untouched.

Parameters:
  • levels (str or list of str) - Trace level(s).

getLevels(self)

 
Returns: ([str], [str])
A pair of lists, one of enabled levels, and the second for disabled levels.