Logger.isActive

* Set false if you don't want logger to run.

class Logger
static
bool isActive;

Meta