You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are using ILogger interface you can inject the logger in a dedicated constructor for your Lambda function and thus you can mock your ILogger instance.
Copy file name to clipboardExpand all lines: docs/core/logging.md
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,19 @@
1
1
---
2
-
title: Logging
2
+
title: Logging v1
3
3
description: Core utility
4
4
---
5
5
6
+
!!! warning
7
+
Version 1.x.x will continue to be supported until **end of July 2025** for critical bug fixes and security updates in very exceptional cases where you cannot update to v2, but no new features will be added to this version.
8
+
9
+
We recommend you upgrade to the latest version.
10
+
11
+
The latest version is available at [Logging v2](https://docs.powertools.aws.dev/lambda/dotnet/core/logging-v2/).
12
+
13
+
6
14
The logging utility provides a Lambda optimized logger with output structured as JSON.
7
15
16
+
8
17
## Key features
9
18
10
19
* Capture key fields from Lambda context, cold start and structures logging output as JSON
Copy file name to clipboardExpand all lines: docs/core/metrics.md
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,14 @@
1
1
---
2
-
title: Metrics
2
+
title: Metrics v1
3
3
description: Core utility
4
4
---
5
5
6
+
!!! warning
7
+
Version 1.x.x will continue to be supported **until end of October 2025** for bug fixes and security updates, but no new features will be added to this version. We recommend you upgrade to the latest version.
8
+
9
+
The latest version is available at [Metrics v2](https://docs.powertools.aws.dev/lambda/dotnet/core/metrics-v2/).
10
+
11
+
6
12
Metrics creates custom metrics asynchronously by logging metrics to standard output following [Amazon CloudWatch Embedded Metric Format (EMF)](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format.html).
7
13
8
14
These metrics can be visualized through [Amazon CloudWatch Console](https://aws.amazon.com/cloudwatch/).
0 commit comments