From ade73f8c4a83bfc135f85dbbe8ee42f9dcbb9d56 Mon Sep 17 00:00:00 2001 From: Pankaj Agrawal Date: Tue, 1 Sep 2020 09:33:41 +0200 Subject: [PATCH 1/2] Remove logging setup from readme as its on docs --- README.md | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/README.md b/README.md index e9ca0d87c..46103f894 100644 --- a/README.md +++ b/README.md @@ -67,28 +67,6 @@ And configure the aspectj-maven-plugin to compile-time weave (CTW) the aws-lambd ``` **Note:** If you are working with Lambda on runtime post java8, please refer [issue](https://github.com/awslabs/aws-lambda-powertools-java/issues/50) for workaround -### Logging Configuration -Powertools extends the functionality of Log4J. Below is an example `log4j2.xml` file, with the `LambdaJsonLayout` configured. - -```xml - - - - - - - - - - - - - - - - -``` - ## Credits * [Gatsby Apollo Theme for Docs](https://github.com/apollographql/gatsby-theme-apollo/tree/master/packages/gatsby-theme-apollo-docs) From f8534d832964c7427d3ddcdc71471e3b400829e2 Mon Sep 17 00:00:00 2001 From: Pankaj Agrawal Date: Tue, 1 Sep 2020 09:37:32 +0200 Subject: [PATCH 2/2] Reference to example application in readme --- README.md | 4 ++++ example/template.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 46103f894..da0c3dd68 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,10 @@ And configure the aspectj-maven-plugin to compile-time weave (CTW) the aws-lambd ``` **Note:** If you are working with Lambda on runtime post java8, please refer [issue](https://github.com/awslabs/aws-lambda-powertools-java/issues/50) for workaround +## Example + +See **[example](./example/README.md)** of all features, and a SAM template with all Powertools env vars. + ## Credits * [Gatsby Apollo Theme for Docs](https://github.com/apollographql/gatsby-theme-apollo/tree/master/packages/gatsby-theme-apollo-docs) diff --git a/example/template.yaml b/example/template.yaml index 6609edc16..32f6461e9 100644 --- a/example/template.yaml +++ b/example/template.yaml @@ -21,6 +21,7 @@ Resources: Environment: # More info about Env Vars: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#environment-object Variables: POWERTOOLS_SERVICE_NAME: "Payment Service" + LOG_LEVEL: INFO Tracing: Active Events: HelloWorld: