I think that would be redundant.  The logger library already does that for you.  To get better than that you'd have to do something static that removes debug at compilation time, but I don't think it's worth it as ops would no longer be able to turn on debugging.