Skip to content

Commit

Permalink
feat(utils): add isLevelActive
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed Apr 20, 2021
1 parent df45492 commit 700ce5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export * from './fetch';
export * from './is-cancelled';
export * from './is-ci';
export * from './is-interactive';
export * from './is-level-active';
export * from './recreate';
export * from './run';
export * from './style';
6 changes: 6 additions & 0 deletions src/utils/is-level-active.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Context, LogLevel } from '../definitions';
import { isLogLevelActive } from '../helpers/logging';

export function isLevelActive(level: LogLevel, context: Context): boolean {
return isLogLevelActive(level, context);
}

0 comments on commit 700ce5c

Please sign in to comment.