log static method

void log(
  1. LogLevel level,
  2. String tag,
  3. Object msg
)

Implementation

static void log(LogLevel level, String tag, Object msg) {
  if (enable == false) {
    return;
  }
  if (tag.isEmpty) {
    tag = "VE_VOD";
  }
  String logLevelStr = level.name;
  StringBuffer logStrBuffer = StringBuffer();
  logStrBuffer.write('[TTF]');
  logStrBuffer.write('[$logLevelStr]');
  logStrBuffer.write('[$tag]');
  logStrBuffer.write(msg);
  onLog?.call(level, logStrBuffer.toString());
}