Hungrier % in Diag? [message #5490] |
Wed, 22 July 2009 16:27  |
Chris Ring Messages: 16 Registered: July 2009 Location: Santa Barbara, CA |
Junior Member |
|
|
Looks like the % 'Module wildcard' character available in Diag_setMask()
and other related fxns can only be used to match Module names. That is,
if I have 3 Modules in my system - mypkg.A, mypkg.B, and mypkg.deeper.C
- I can affect the masks of mypkg.A and mypkg.B using the pattern
"mypkg.%". Cool.
I'm looking for a way to - at runtime via Diag_setMask() - affect all
Modules in the system (e.g. to turn on all tracing). Initially I
expected to call Diag_setMask("%=EXILA12345678");, but that didn't work
b/c '%' only matches Module names - I have to name the package. It
looks like, to get the turn-on-all-logging feature I want, I have to at
least explicitly list all packages in the system in my Diag_setMask() call?
If we need to add a feature, perhaps we could add a similar 'wildcard'
char available for matching package names (maybe '*')? That is, If I
want to affect all 3 of the above packages, perhaps I could use "mypkg*.%"?
Chris
|
|
|
Re: Hungrier % in Diag? [message #5504 is a reply to message #5490] |
Wed, 22 July 2009 23:05  |
Dave Russo Messages: 172 Registered: July 2009 |
Senior Member |
|
|
Chris Ring wrote:
> Looks like the % 'Module wildcard' character available in Diag_setMask()
> and other related fxns can only be used to match Module names. That is,
> if I have 3 Modules in my system - mypkg.A, mypkg.B, and mypkg.deeper.C
> - I can affect the masks of mypkg.A and mypkg.B using the pattern
> "mypkg.%". Cool.
>
> I'm looking for a way to - at runtime via Diag_setMask() - affect all
> Modules in the system (e.g. to turn on all tracing). Initially I
> expected to call Diag_setMask("%=EXILA12345678");, but that didn't work
> b/c '%' only matches Module names - I have to name the package. It
> looks like, to get the turn-on-all-logging feature I want, I have to at
> least explicitly list all packages in the system in my Diag_setMask() call?
>
> If we need to add a feature, perhaps we could add a similar 'wildcard'
> char available for matching package names (maybe '*')? That is, If I
> want to affect all 3 of the above packages, perhaps I could use "mypkg*.%"?
Actually there is a bug in the wildcard handling that prevents % from
applying to more than the first module. Once this is fixed (this week),
your initial expectation should work: Diags_setmask("%=EXILA12345678")
will enable all trace for all modules.
>
> Chris
|
|
|
Powered by
FUDForum. Page generated in 0.02084 seconds