Skip to content

Commit

Permalink
feat(logger): add support for 'off' log level in logger configuration (
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutsu3 authored Dec 8, 2024
1 parent 50a707f commit 4629127
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SENTRY_DSN=
ENABLE_SENTRY=false
# Select one of the following: debug, info, warning, error
LOG_LEVEL=info
# Select one of the following: debug, info, warning, error, off
LOG_LEVEL=off
2 changes: 2 additions & 0 deletions lib/functions/logger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Level getLogLevel() {
return Level.warning;
case 'error':
return Level.error;
case 'off':
return Level.off;
default:
return Level.info;
}
Expand Down

0 comments on commit 4629127

Please sign in to comment.