toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case EventSeverity.trace:
      return 'TRACE';
    case EventSeverity.debug:
      return 'DEBUG';
    case EventSeverity.info:
      return 'INFO';
    case EventSeverity.warn:
      return 'WARN';
    case EventSeverity.error:
      return 'ERROR';
    case EventSeverity.fatal:
      return 'FATAL';
  }
}