in reply to Re^2: Overriding Global Variables
in thread Overriding Global Variables
the "debug" function is enabled or disabled in accordance to the module that uses it
I see, in that case I would concur with karlgoethebier and I think an OO approach is probably best - each module can get an object with an individual debug flag. And looking into existing logging modules, as 1nickt said, makes sense before you re-invent that wheel.
|
|---|