This project is read-only.


Global Level setting


It would be useful to have a global setting that can change all the modules level. For instance if you want to change all of them to Verbose, but don't want to have to go through each one.
Also, would be nice to have a way to see a listing of all the trace modules already created, especially if you are debugging.
Closed Mar 18, 2012 at 2:10 PM by tommck


tommck wrote Mar 13, 2012 at 4:40 PM

As it is now, there is a default level for all modules that don't have an explicitly set level. This way, when a Module has been created, the Trace class doesn't bother "registering" it or anything.

So, there is currently no way to know what the names of all the created Trace modules are.

So, given this, we'd need to do either of two things:

Option 1:
  • add knowledge of all created Trace objects' module name to the static private data
  • Add a public static "set all trace levels" method
Option 2:
  • add the ability to change the default value for switches, and
  • The ability to reset all switches (or a single switch for that matter) to the default.
I'm leaning towards Option 2, because it seems like less change.

wrote Mar 18, 2012 at 2:09 PM

wrote Mar 18, 2012 at 2:10 PM

Resolved with changeset 12677.

wrote Feb 13, 2013 at 4:12 AM

wrote May 16, 2013 at 12:53 AM