This project is read-only.


Setting default level for a module before used


Another nice to have would be able to load preset "default" values for trace modules before they are even created.
Would be nice to load a configuration file that lists modules and have them each set to a specific level then when they are created it would default to that level.
Closed Mar 18, 2012 at 2:09 PM by tommck


tommck wrote Mar 15, 2012 at 2:35 PM

How are you envisioning the Trace.js file getting access to these initial settings except through calling a method like 'traceLevel'?

tvanfleet wrote Mar 15, 2012 at 3:55 PM

Does this store it the module name and value so if I create the module later it will use that level? That is what i am looking for. On page load i can set the level of a module before the trace object is created in some function used later on.

On using the jsTrace more, I think it works this way, so this is issue is probably moot.

tommck wrote Mar 18, 2012 at 12:47 PM

As far as I can tell, this is already supported, so I'm setting the status to Fixed (doesn't have a better option)

wrote Mar 18, 2012 at 2:09 PM

wrote Feb 13, 2013 at 4:12 AM

wrote May 16, 2013 at 12:53 AM