1

Closed

Setting default level for a module before used

description

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 1:09 PM by tommck

comments

tommck wrote Mar 15, 2012 at 1: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 2: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 11:47 AM

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 1:09 PM

wrote Feb 13, 2013 at 3:12 AM

wrote May 15, 2013 at 11:53 PM