Implement strength for whole library

This commit is contained in:
2024-09-12 01:31:45 +02:00
parent 524e9026b8
commit 76cf4632e4
14 changed files with 97 additions and 66 deletions
+4 -1
View File
@@ -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)