enable static method

void enable({
  1. bool allowInRelease = false,
})

Enable logging output.

In release builds this is a no-op unless allowInRelease is true.

Implementation

static void enable({bool allowInRelease = false}) {
  if (_isRelease && !allowInRelease) {
    _enabled = false;
    return;
  }
  _enabled = true;
}