getStyle method

SemiLogStyle getStyle(
  1. SemiLogLevel level
)

return your style with level

Implementation

SemiLogStyle getStyle(SemiLogLevel level) {
  switch (level) {
    case SemiLogLevel.header:
      return header;
    case SemiLogLevel.separator:
      return separator;
    case SemiLogLevel.debug:
      return debug;
    case SemiLogLevel.warning:
      return warning;
    case SemiLogLevel.error:
      return error;
    case SemiLogLevel.info:
      return info;
    case SemiLogLevel.success:
      return success;
    case SemiLogLevel.fail:
      return fail;
    case SemiLogLevel.print:
      return info;
  }
}