getLevelStr method

String getLevelStr(
  1. int level
)

Log = 1, Warning = 2, Error = 3, Debug = 4, Info = 5,

Implementation

String getLevelStr(int level) {
  switch (level) {
    case 1:
      return 'verbose';
    case 2:
      return 'warning';
    case 3:
      return 'error';
    case 4:
      return 'verbose';
    case 5:
      return 'info';
    default:
      return 'verbose';
  }
}