-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
460 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
testprojects/micronaut-log4aws-test-lambda-only/micronaut-log4aws-test-lambda-only.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Copyright 2020 Agorapulse. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
plugins { | ||
id 'groovy' | ||
} | ||
|
||
dependencies { | ||
compile project(':micronaut-log4aws') | ||
testCompile project(':micronaut-log4aws-test') | ||
|
||
annotationProcessor platform("io.micronaut:micronaut-bom:$micronautVersion") | ||
compile platform("io.micronaut:micronaut-bom:$micronautVersion") | ||
testAnnotationProcessor platform("io.micronaut:micronaut-bom:$micronautVersion") | ||
testCompile platform("io.micronaut:micronaut-bom:$micronautVersion") | ||
|
||
annotationProcessor "io.micronaut:micronaut-inject-java" | ||
compile "io.micronaut:micronaut-core" | ||
compileOnly "io.micronaut:micronaut-inject-groovy" | ||
testCompile "io.micronaut:micronaut-inject-groovy" | ||
} | ||
|
24 changes: 24 additions & 0 deletions
24
...ly/src/test/groovy/com/agorapulse/micronaut/log4aws/test/lambdaonly/LambdaOnlySpec.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Copyright 2020 Agorapulse. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.agorapulse.micronaut.log4aws.test.lambdaonly | ||
|
||
import com.agorapulse.micronaut.log4aws.test.Log4AwsFactorySpec | ||
|
||
class LambdaOnlySpec extends Log4AwsFactorySpec { | ||
|
||
} |
35 changes: 35 additions & 0 deletions
35
testprojects/micronaut-log4aws-test-lambda-only/src/test/resources/log4j2.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
SPDX-License-Identifier: Apache-2.0 | ||
Copyright 2020 Agorapulse. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
https://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<Configuration packages="org.apache.logging.log4j.core,com.amazonaws.services.lambda.runtime.log4j2"> | ||
<Appenders> | ||
<Lambda name="Lambda"> | ||
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %X{AWSRequestId} %-5p %c{1}:%L - %m%n"/> | ||
</Lambda> | ||
<Console name="Console" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/> | ||
</Console> | ||
</Appenders> | ||
<Loggers> | ||
<Root level="info"> | ||
<AppenderRef ref="Lambda"/> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |
36 changes: 36 additions & 0 deletions
36
testprojects/micronaut-log4aws-test-lower-case/micronaut-log4aws-test-lower-case.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Copyright 2020 Agorapulse. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
plugins { | ||
id 'groovy' | ||
} | ||
|
||
dependencies { | ||
compile project(':micronaut-log4aws') | ||
testCompile project(':micronaut-log4aws-test') | ||
|
||
annotationProcessor platform("io.micronaut:micronaut-bom:$micronautVersion") | ||
compile platform("io.micronaut:micronaut-bom:$micronautVersion") | ||
testAnnotationProcessor platform("io.micronaut:micronaut-bom:$micronautVersion") | ||
testCompile platform("io.micronaut:micronaut-bom:$micronautVersion") | ||
|
||
annotationProcessor "io.micronaut:micronaut-inject-java" | ||
compile "io.micronaut:micronaut-core" | ||
compileOnly "io.micronaut:micronaut-inject-groovy" | ||
testCompile "io.micronaut:micronaut-inject-groovy" | ||
} | ||
|
24 changes: 24 additions & 0 deletions
24
...case/src/test/groovy/com/agorapulse/micronaut/log4aws/test/lowercase/LowerCaseSpec.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Copyright 2020 Agorapulse. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.agorapulse.micronaut.log4aws.test.lowercase | ||
|
||
import com.agorapulse.micronaut.log4aws.test.Log4AwsFactorySpec | ||
|
||
class LowerCaseSpec extends Log4AwsFactorySpec { | ||
|
||
} |
44 changes: 44 additions & 0 deletions
44
testprojects/micronaut-log4aws-test-lower-case/src/test/resources/log4j2.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
SPDX-License-Identifier: Apache-2.0 | ||
Copyright 2020 Agorapulse. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
https://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<Configuration packages="org.apache.logging.log4j.core,io.sentry.log4j2,com.amazonaws.services.lambda.runtime.log4j2"> | ||
<Appenders> | ||
<Lambda name="Lambda"> | ||
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %X{AWSRequestId} %-5p %c{1}:%L - %m%n"/> | ||
</Lambda> | ||
<Console name="Console" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/> | ||
</Console> | ||
<Sentry name="sentry"/> | ||
</Appenders> | ||
<Loggers> | ||
<Root level="info"> | ||
<AppenderRef ref="Lambda"/> | ||
<!-- Note that the Sentry logging threshold is overridden to the WARN level --> | ||
<AppenderRef ref="sentry" level="warn"/> | ||
</Root> | ||
<Logger name="io.sentry" level="warn" additivity="false"> | ||
<AppenderRef ref="Console" /> | ||
</Logger> | ||
<Logger name="software.amazon" level="warn" additivity="false"> | ||
<AppenderRef ref="Console" /> | ||
</Logger> | ||
</Loggers> | ||
</Configuration> |
Oops, something went wrong.