Skip to content

Commit

Permalink
[pinpoint-apm#117] logger from a log level string
Browse files Browse the repository at this point in the history
  • Loading branch information
feelform committed Oct 19, 2022
1 parent b7ace81 commit dc863d6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/utils/log/logger.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,15 @@ test('Logger.Builder', (t) => {
test('Logger by a log level', (t) => {
let actual = Logger.makeBuilder('debug', {}).build()
t.equal(actual.type.name, 'DEBUG')

actual = Logger.makeBuilder('info', {}).build()
t.equal(actual.type.name, 'INFO')

actual = Logger.makeBuilder('warn', {}).build()
t.equal(actual.type.name, 'WARN')

actual = Logger.makeBuilder('error', {}).build()
t.equal(actual.type.name, 'ERROR')

t.end()
})

0 comments on commit dc863d6

Please sign in to comment.