toValue method

String toValue()

Implementation

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