added conditional logging

Logging each call and return values might add a significant load in the
logging file, or maybe not. Since this *might* be sensible, it is now
possible to disable the module's logs.