Implement strength for whole library
This commit is contained in:
+4
-1
@@ -1,5 +1,8 @@
|
||||
import {Console} from 'logger-console'
|
||||
import {writers, Level} from 'log'
|
||||
import {Level, writers, options} from 'log'
|
||||
import {set_strength, Strength} from '..'
|
||||
|
||||
options.verbose = false
|
||||
const logger = new Console({minLevel: Level.TRACE, with_color: true})
|
||||
writers.set('console', logger)
|
||||
set_strength(Strength.weak)
|
||||
|
||||
Reference in New Issue
Block a user