@@ -24,6 +24,8 @@ describe('createNewLogger', () => {
2424 logger . debug ( 'another log' , 5 , 4 ) ;
2525 logger . warn ( 'yet another log' , true ) ;
2626 logger . error ( 'and one error' ) ;
27+ logger . error ( [ 1 , 2 , 3 , undefined ] ) ;
28+ logger . log ( 'Output' , undefined ) ;
2729
2830 // Get all JSON logs.
2931 expect ( logger . getJsonLogs ( ) ) . toStrictEqual ( [
@@ -61,11 +63,25 @@ describe('createNewLogger', () => {
6163 messages : [ '🚀' , 'and one error' ] ,
6264 name : 'evaluatingRule' ,
6365 timestampMs : 1111
66+ } ,
67+ {
68+ attributes : { logLevel : 'error' } ,
69+ context : { ruleId : 1234 } ,
70+ messages : [ '🚀' , '[1,2,3,null]' ] ,
71+ name : 'evaluatingRule' ,
72+ timestampMs : 1111
73+ } ,
74+ {
75+ attributes : { logLevel : 'log' } ,
76+ context : { ruleId : 1234 } ,
77+ messages : [ '🚀' , 'Output' , undefined ] ,
78+ name : 'evaluatingRule' ,
79+ timestampMs : 1111
6480 }
6581 ] ) ;
6682 } ) ;
6783
68- test . only ( 'returns an object which allows anonymizing tokens in logs' , ( ) => {
84+ test ( 'returns an object which allows anonymizing tokens in logs' , ( ) => {
6985 const context = { ruleId : 1234 } ;
7086 const logger = createNewLogger ( context , [
7187 'TOKENIZED_DATA' ,
0 commit comments