Closed tschob closed 8 years ago
Couldn't you just comment out the annotation to the same effect?
It would have the same effect, of course. But it's not my understanding of clean code and working efficiency to (un-)comment multiple lines of code instead of using one constant for it.
That's why there exists Hugo, isn't it? At least it would have the same effect to do a manually log in each method too. But it's not as clean and useful as the @DebugLog approach.
I think I'll move the Hugo
class into the public API and give it some options including a log hook for #60
And, obviously, a setting for this
Hugo.setEnabled
just merged.
I would like to be able to give @DebugLog a parameter which en-/disables the logging. I don't wan't to see all logs everytime. So eg. if I'm interested in the api logs I would adjust my verbose constant to see them and if I'm interested in other parts I can disable them (to don't be distracted).