Skip to content

Commit 2992b28

Browse files
author
Dmitry Balabanov
committed
chore(examples): extend logger example
1 parent c0e1a23 commit 2992b28

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/logger/examples/additional-keys.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ const lambdaHandler: Handler = async () => {
2020
// Pass an error that occurred
2121
logger.error('This is an ERROR log', new Error('Something bad happened!'));
2222

23+
// Pass a simple string as additional data
24+
logger.info('This is an INFO log', 'Extra log data');
25+
2326
return {
2427
foo: 'bar'
2528
};

0 commit comments

Comments
 (0)