From a2a2fd8763501a2ebfd5a00331f176638da1b131 Mon Sep 17 00:00:00 2001 From: Lu Peng <61207760+lupengamzn@users.noreply.github.com> Date: Wed, 9 Jun 2021 15:03:15 -0700 Subject: [PATCH 1/2] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 01c7d389..119fe2d2 100644 --- a/README.md +++ b/README.md @@ -712,8 +712,11 @@ Other ways to configure logging is to edit the element in the `App. ### Logging (.NET Core) -Currently we support `log4net` logging and options provided in [LoggingOptions](https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/Amazon/TLoggingOptions.html). You should configure logging before initialization of `AWSXRayRecorder` instance or using any X-Ray methods. -Following is the way to configure logging with X-Ray SDK: +Currently X-Ray SDK for .NET Core supports logging options provided in [LoggingOptions](https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/Amazon/TLoggingOptions.html). You should configure logging before initialization of `AWSXRayRecorder` instance or using any X-Ray methods. + +*Note*: `LoggingOptions.Console` will emit all detailed logs regardless of the logging level, which may result in excessive charges in some use case (e.g., export logs to AWS CloudWatch). + +Following is the way to configure `log4net` with X-Ray SDK: ```csharp using Amazon; From c8c217c842589757de8cba73e33ed010b29b3db1 Mon Sep 17 00:00:00 2001 From: Lu Peng <61207760+lupengamzn@users.noreply.github.com> Date: Wed, 9 Jun 2021 16:39:03 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 119fe2d2..bfd7000c 100644 --- a/README.md +++ b/README.md @@ -693,7 +693,7 @@ We support instrumenting ASP.NET Core web app on Lambda. Please follow the steps ### Logging (.NET) -The AWS X-Ray .NET SDK share the same logging mechanism as AWS .NET SDK. If the application had already configured logging for AWS .NET SDK, it should just work for AWS X-Ray .NET SDK. +The AWS X-Ray .NET SDK share the same logging mechanism as [AWS .NET SDK](https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/net-dg-config-other.html#config-setting-awslogging). If the application had already configured logging for AWS .NET SDK, it should just work for AWS X-Ray .NET SDK. The recommended way to configure an application is to use the element in the project’s `App.config` or `Web.config` file. ```xml @@ -712,9 +712,7 @@ Other ways to configure logging is to edit the element in the `App. ### Logging (.NET Core) -Currently X-Ray SDK for .NET Core supports logging options provided in [LoggingOptions](https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/Amazon/TLoggingOptions.html). You should configure logging before initialization of `AWSXRayRecorder` instance or using any X-Ray methods. - -*Note*: `LoggingOptions.Console` will emit all detailed logs regardless of the logging level, which may result in excessive charges in some use case (e.g., export logs to AWS CloudWatch). +The AWS X-Ray .NET SDK share the same logging mechanism as [AWS .NET SDK](https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/net-dg-config-other.html#config-setting-awslogging). To configure logging for .NET Core application, pass one of these options to the `AWSXRayRecorder.RegisterLogger` method. Following is the way to configure `log4net` with X-Ray SDK: