File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ Logger provides an opinionated logger with output structured as JSON.
9
9
10
10
* Capturing key fields from the Lambda context, cold starts, and structure logging output as JSON.
11
11
* Logging Lambda invocation events when instructed (disabled by default).
12
- * Printing all the logs only for a percentage of invocations via log sampling (disabled by default).
12
+ * Switch log level to ` DEBUG ` for a percentage of invocations (sampling).
13
+ * Buffering logs for a specific request or invocation, and flushing them automatically on error or manually as needed.
13
14
* Appending additional keys to structured logs at any point in time.
14
15
* Providing a custom log formatter (Bring Your Own Formatter) to output logs in a structure compatible with your organization’s Logging RFC.
15
16
Original file line number Diff line number Diff line change @@ -41,10 +41,12 @@ import type {
41
41
* The Logger utility provides an opinionated logger with output structured as JSON for AWS Lambda.
42
42
*
43
43
* **Key features**
44
- * * Capture key fields from AWS Lambda context, cold start, and structure log output as JSON
45
- * * Append additional keys to one or all log items
46
- * * Switch log level to `DEBUG` based on a sample rate value for a percentage of invocations
47
- * * Ability to buffer logs in memory and flush them when there's an error
44
+ * Capturing key fields from the Lambda context, cold starts, and structure logging output as JSON.
45
+ * Logging Lambda invocation events when instructed (disabled by default).
46
+ * Switch log level to `DEBUG` for a percentage of invocations (sampling).
47
+ * Buffering logs for a specific request or invocation, and flushing them automatically on error or manually as needed.
48
+ * Appending additional keys to structured logs at any point in time.
49
+ * Providing a custom log formatter (Bring Your Own Formatter) to output logs in a structure compatible with your organization’s Logging RFC.
48
50
*
49
51
* After initializing the Logger class, you can use the methods to log messages at different levels.
50
52
*
You can’t perform that action at this time.
0 commit comments