@@ -36,29 +36,30 @@ export class BuffLog {
36
36
} ) ;
37
37
}
38
38
39
- debug ( message : string ) {
40
- this . pinoLogger . debug ( message ) ;
39
+ debug ( message : string , context ?: object ) {
40
+ this . pinoLogger . debug ( { context : context } , message ) ;
41
41
}
42
42
43
- info ( message : string ) {
43
+ info ( message : string , context ?: object ) {
44
44
this . pinoLogger . info ( message ) ;
45
45
}
46
46
47
- notice ( message : string ) {
48
- this . pinoLogger . notice ( message ) ;
47
+ notice ( message : string , context ?: object ) {
48
+ this . pinoLogger . notice ( { context : context } , message ) ;
49
49
}
50
50
51
- warning ( message : string ) {
52
- this . pinoLogger . warn ( message ) ;
51
+ warning ( message : string , context ?: object ) {
52
+ this . pinoLogger . warn ( { context : context } , message ) ;
53
53
}
54
54
55
- error ( message : string ) {
56
- this . pinoLogger . error ( message ) ;
55
+ error ( message : string , context ?: object ) {
56
+ this . pinoLogger . error ( { context : context } , message ) ;
57
+
57
58
}
58
59
59
60
// for consistency with php-bufflog, critical == fatal
60
- critical ( message : string ) {
61
- this . pinoLogger . fatal ( message ) ;
61
+ critical ( message : string , context ?: object ) {
62
+ this . pinoLogger . fatal ( { context : context } , message ) ;
62
63
}
63
64
64
65
}
0 commit comments