log method

void log(
  1. String message,
  2. CacheManagerLogLevel level
)

Function to log a message on a certain log level

Implementation

void log(String message, CacheManagerLogLevel level) {
  if (CacheManager.logLevel.index >= level.index) {
    // ignore: avoid_print
    print(message);
  }
}