@@ -21,7 +21,7 @@ exports.handler = async function handler(event) {
2121 });
2222
2323 log .info (' Starting process' ); // [tl! highlight]
24- // => { "level ": "info", "msg": "Starting process", "_tags": ["index"] } [tl! reindex(null) .select-none]
24+ // => { "_logLevel ": "info", "msg": "Starting process", "_tags": ["index"] } [tl! reindex(null) .select-none]
2525
2626 // ...
2727
@@ -35,7 +35,7 @@ exports.handler = async function handler(event) {
3535 return false ;
3636 } catch (error) {
3737 log .error (error).throw ; // [tl! highlight]
38- // => { "level ": "error", "msg": "...", "name": "Error", "stack": "...", "_tags": ["index"] } [tl! reindex(null) .select-none]
38+ // => { "_logLevel ": "error", "msg": "...", "name": "Error", "stack": "...", "_tags": ["index"] } [tl! reindex(null) .select-none]
3939 }
4040};
4141```
@@ -52,7 +52,7 @@ const log = new LambdaLog({
5252module .exports = {
5353 getData : async function getData (event ) {
5454 log .info (' Calling API with event data' , { event }); // [tl! highlight]
55- // => { "level ": "info", "msg": "Calling API with event data", "event": { ... }, "_tags": ["api"] } [tl! reindex(null) .select-none]
55+ // => { "_logLevel ": "info", "msg": "Calling API with event data", "event": { ... }, "_tags": ["api"] } [tl! reindex(null) .select-none]
5656
5757 // ..get data
5858
@@ -65,7 +65,7 @@ module.exports = {
6565 }
6666
6767 log .warn (` Invalid ID provided` , { id }, [' isValidId' ]); // [tl! highlight]
68- // => { "level ": "warn", "msg": "Invalid ID provided", "id": "...", "_tags": ["api", "isValidId"] } [tl! reindex(null) .select-none]
68+ // => { "_logLevel ": "warn", "msg": "Invalid ID provided", "id": "...", "_tags": ["api", "isValidId"] } [tl! reindex(null) .select-none]
6969 return false ;
7070 }
7171};
@@ -90,7 +90,7 @@ exports.handler = async function handler(event, context) {
9090 };
9191
9292 log .info (' Starting process' ); // [tl! highlight]
93- // => { "level ": "info", "msg": "Starting process", "functionName": "my-lambda-function", "requestId": "xxx", "_tags": [] } [tl! reindex(null) .select-none]
93+ // => { "_logLevel ": "info", "msg": "Starting process", "functionName": "my-lambda-function", "requestId": "xxx", "_tags": [] } [tl! reindex(null) .select-none]
9494
9595 // ...
9696
@@ -113,7 +113,7 @@ exports.handler = async function handler(event, context) {
113113 });
114114
115115 log .info (' Starting process' ); // [tl! highlight]
116- // => { "level ": "info", "msg": "Starting process", "functionName": "my-lambda-function", "requestId": "xxx", "_tags": [] } [tl! reindex(null) .select-none]
116+ // => { "_logLevel ": "info", "msg": "Starting process", "functionName": "my-lambda-function", "requestId": "xxx", "_tags": [] } [tl! reindex(null) .select-none]
117117
118118 // ...
119119
0 commit comments