Skip to content

Commit 195866a

Browse files
authored
Merge pull request #2 from bufferapp/task/reflect-php
Use msg` to `message` for consistency
2 parents c8fbb9c + b126dfb commit 195866a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

bufflog.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,16 @@ export class BuffLog {
55

66
constructor() {
77
this.pinoLogger = require('pino')({
8-
'level': this.defaultLevel,
8+
level: this.defaultLevel,
9+
10+
// probably we want to call it `msg`. if so, let's change the PHP library instead
11+
messageKey: 'message',
12+
13+
// Define "base" fields
14+
// soon: remove the `v` field https://github.com/pinojs/pino/issues/620
15+
base: {
16+
},
17+
918
// notice doesn't exist in pino, let's add it
1019
customLevels: {
1120
notice: 35

0 commit comments

Comments
 (0)