toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case LogLevel.debug:
      return 'DEBUG';
    case LogLevel.info:
      return 'INFO';
    case LogLevel.error:
      return 'ERROR';
    case LogLevel.warn:
      return 'WARN';
    case LogLevel.disabled:
      return 'DISABLED';
  }
}