Skip to content

Commit

Permalink
Include missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfreedom committed Sep 5, 2023
1 parent cad8b65 commit a6fc3ae
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions lib/apis/utils/log_level.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import 'package:logger/logger.dart';

enum LogLevel {
verbose,
debug,
info,
warning,
error,
wtf,
nothing;

Level toLevel() {
switch (this) {
case LogLevel.verbose:
return Level.verbose;
case LogLevel.debug:
return Level.debug;
case LogLevel.info:
return Level.info;
case LogLevel.warning:
return Level.warning;
case LogLevel.error:
return Level.error;
case LogLevel.wtf:
return Level.wtf;
default:
return Level.nothing;
}
}
}

0 comments on commit a6fc3ae

Please sign in to comment.