diff --git a/core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLogger.java b/core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLogger.java similarity index 99% rename from core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLogger.java rename to core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLogger.java index ee2213f..f628744 100644 --- a/core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLogger.java +++ b/core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLogger.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package uk.bot_by.aws_lambda.slf4j; +package io.github.vitalijr2.aws.lambda.slf4j; import java.io.ObjectStreamException; import java.io.Serializable; diff --git a/core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerConfiguration.java b/core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerConfiguration.java similarity index 99% rename from core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerConfiguration.java rename to core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerConfiguration.java index c65e150..b0afdad 100644 --- a/core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerConfiguration.java +++ b/core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerConfiguration.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package uk.bot_by.aws_lambda.slf4j; +package io.github.vitalijr2.aws.lambda.slf4j; import static java.util.Objects.isNull; import static java.util.Objects.nonNull; diff --git a/core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerConfigurationProperty.java b/core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerConfigurationProperty.java similarity index 86% rename from core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerConfigurationProperty.java rename to core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerConfigurationProperty.java index bdb7fd3..ad7bd17 100644 --- a/core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerConfigurationProperty.java +++ b/core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerConfigurationProperty.java @@ -1,4 +1,19 @@ -package uk.bot_by.aws_lambda.slf4j; +/* + * Copyright 2022-2024 Vitalij Berdinskih + * + * 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 + * + * http://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 io.github.vitalijr2.aws.lambda.slf4j; /** * The configuration properties and environment variables. diff --git a/core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerFactory.java b/core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerFactory.java similarity index 99% rename from core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerFactory.java rename to core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerFactory.java index 2d66eba..5deed81 100644 --- a/core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerFactory.java +++ b/core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package uk.bot_by.aws_lambda.slf4j; +package io.github.vitalijr2.aws.lambda.slf4j; import static java.util.Objects.isNull; import static java.util.Objects.nonNull; diff --git a/core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerLevel.java b/core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerLevel.java similarity index 97% rename from core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerLevel.java rename to core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerLevel.java index dcf3104..20c4bfc 100644 --- a/core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerLevel.java +++ b/core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerLevel.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package uk.bot_by.aws_lambda.slf4j; +package io.github.vitalijr2.aws.lambda.slf4j; import static java.util.Objects.requireNonNull; diff --git a/core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerOutput.java b/core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerOutput.java similarity index 96% rename from core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerOutput.java rename to core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerOutput.java index 0a8d7c3..22113b0 100644 --- a/core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerOutput.java +++ b/core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerOutput.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package uk.bot_by.aws_lambda.slf4j; +package io.github.vitalijr2.aws.lambda.slf4j; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaServiceProvider.java b/core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaServiceProvider.java similarity index 97% rename from core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaServiceProvider.java rename to core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaServiceProvider.java index 7fc1252..0858e35 100644 --- a/core/src/main/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaServiceProvider.java +++ b/core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaServiceProvider.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package uk.bot_by.aws_lambda.slf4j; +package io.github.vitalijr2.aws.lambda.slf4j; import org.slf4j.ILoggerFactory; import org.slf4j.IMarkerFactory; diff --git a/core/src/main/java/uk/bot_by/aws_lambda/slf4j/package-info.java b/core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/package-info.java similarity index 79% rename from core/src/main/java/uk/bot_by/aws_lambda/slf4j/package-info.java rename to core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/package-info.java index 8f959c3..ccb5c40 100644 --- a/core/src/main/java/uk/bot_by/aws_lambda/slf4j/package-info.java +++ b/core/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/package-info.java @@ -5,4 +5,4 @@ * @author Vitalij Berdinskih * @since 1.0.0 */ -package uk.bot_by.aws_lambda.slf4j; +package io.github.vitalijr2.aws.lambda.slf4j; diff --git a/core/src/main/resources/META-INF/services/org.slf4j.spi.SLF4JServiceProvider b/core/src/main/resources/META-INF/services/org.slf4j.spi.SLF4JServiceProvider index c8c85b0..fde3360 100644 --- a/core/src/main/resources/META-INF/services/org.slf4j.spi.SLF4JServiceProvider +++ b/core/src/main/resources/META-INF/services/org.slf4j.spi.SLF4JServiceProvider @@ -1 +1 @@ -uk.bot_by.aws_lambda.slf4j.AWSLambdaServiceProvider +io.github.vitalijr2.aws.lambda.slf4j.AWSLambdaServiceProvider diff --git a/core/src/test/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerConfigurationTest.java b/core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerConfigurationTest.java similarity index 99% rename from core/src/test/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerConfigurationTest.java rename to core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerConfigurationTest.java index 75a3fb9..8ab1e67 100644 --- a/core/src/test/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerConfigurationTest.java +++ b/core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerConfigurationTest.java @@ -1,4 +1,4 @@ -package uk.bot_by.aws_lambda.slf4j; +package io.github.vitalijr2.aws.lambda.slf4j; import static java.util.Objects.nonNull; import static org.junit.jupiter.api.Assertions.assertAll; diff --git a/core/src/test/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerFactoryTest.java b/core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerFactoryTest.java similarity index 95% rename from core/src/test/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerFactoryTest.java rename to core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerFactoryTest.java index de09ce5..5ca02b1 100644 --- a/core/src/test/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerFactoryTest.java +++ b/core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerFactoryTest.java @@ -1,4 +1,4 @@ -package uk.bot_by.aws_lambda.slf4j; +package io.github.vitalijr2.aws.lambda.slf4j; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/core/src/test/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerLevelTest.java b/core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerLevelTest.java similarity index 95% rename from core/src/test/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerLevelTest.java rename to core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerLevelTest.java index dbd8dfe..529c2fd 100644 --- a/core/src/test/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerLevelTest.java +++ b/core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerLevelTest.java @@ -1,4 +1,4 @@ -package uk.bot_by.aws_lambda.slf4j; +package io.github.vitalijr2.aws.lambda.slf4j; import static java.util.Objects.isNull; import static org.hamcrest.MatcherAssert.assertThat; @@ -8,6 +8,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; +import io.github.vitalijr2.aws.lambda.slf4j.AWSLambdaLoggerLevel.Builder; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; @@ -15,7 +16,6 @@ import org.junit.jupiter.params.converter.TypedArgumentConverter; import org.junit.jupiter.params.provider.CsvSource; import org.slf4j.event.Level; -import uk.bot_by.aws_lambda.slf4j.AWSLambdaLoggerLevel.Builder; @Tag("fast") class AWSLambdaLoggerLevelTest { diff --git a/core/src/test/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerTest.java b/core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerTest.java similarity index 99% rename from core/src/test/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerTest.java rename to core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerTest.java index 8d86709..3af10cc 100644 --- a/core/src/test/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaLoggerTest.java +++ b/core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaLoggerTest.java @@ -1,4 +1,4 @@ -package uk.bot_by.aws_lambda.slf4j; +package io.github.vitalijr2.aws.lambda.slf4j; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; diff --git a/core/src/test/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaServiceProviderTest.java b/core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaServiceProviderTest.java similarity index 94% rename from core/src/test/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaServiceProviderTest.java rename to core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaServiceProviderTest.java index 820bf91..2502a8b 100644 --- a/core/src/test/java/uk/bot_by/aws_lambda/slf4j/AWSLambdaServiceProviderTest.java +++ b/core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/AWSLambdaServiceProviderTest.java @@ -1,4 +1,4 @@ -package uk.bot_by.aws_lambda.slf4j; +package io.github.vitalijr2.aws.lambda.slf4j; import static org.junit.jupiter.api.Assertions.assertAll; import static org.junit.jupiter.api.Assertions.assertNotNull; diff --git a/core/src/test/java/uk/bot_by/aws_lambda/slf4j/EnvironmentVariablesTest.java b/core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/EnvironmentVariablesTest.java similarity index 99% rename from core/src/test/java/uk/bot_by/aws_lambda/slf4j/EnvironmentVariablesTest.java rename to core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/EnvironmentVariablesTest.java index 6f8eeb9..91d82ca 100644 --- a/core/src/test/java/uk/bot_by/aws_lambda/slf4j/EnvironmentVariablesTest.java +++ b/core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/EnvironmentVariablesTest.java @@ -1,4 +1,4 @@ -package uk.bot_by.aws_lambda.slf4j; +package io.github.vitalijr2.aws.lambda.slf4j; import static java.util.Objects.nonNull; import static org.junit.jupiter.api.Assertions.assertAll; diff --git a/core/src/test/java/uk/bot_by/aws_lambda/slf4j/MarkedTest.java b/core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/MarkedTest.java similarity index 99% rename from core/src/test/java/uk/bot_by/aws_lambda/slf4j/MarkedTest.java rename to core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/MarkedTest.java index c2ebd01..d5c1688 100644 --- a/core/src/test/java/uk/bot_by/aws_lambda/slf4j/MarkedTest.java +++ b/core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/MarkedTest.java @@ -1,4 +1,4 @@ -package uk.bot_by.aws_lambda.slf4j; +package io.github.vitalijr2.aws.lambda.slf4j; import static java.util.Objects.nonNull; import static org.junit.jupiter.api.Assertions.assertAll; diff --git a/core/src/test/java/uk/bot_by/aws_lambda/slf4j/PropertiesTest.java b/core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/PropertiesTest.java similarity index 99% rename from core/src/test/java/uk/bot_by/aws_lambda/slf4j/PropertiesTest.java rename to core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/PropertiesTest.java index 83ce0a8..05d6b77 100644 --- a/core/src/test/java/uk/bot_by/aws_lambda/slf4j/PropertiesTest.java +++ b/core/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/PropertiesTest.java @@ -1,4 +1,4 @@ -package uk.bot_by.aws_lambda.slf4j; +package io.github.vitalijr2.aws.lambda.slf4j; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.core.Is.is; diff --git a/core/src/test/java/org/example/ServiceProvider.java b/core/src/test/java/org/example/ServiceProvider.java index 8ee0fb6..9ce7c7c 100644 --- a/core/src/test/java/org/example/ServiceProvider.java +++ b/core/src/test/java/org/example/ServiceProvider.java @@ -1,6 +1,6 @@ package org.example; -import uk.bot_by.aws_lambda.slf4j.AWSLambdaLoggerOutput; +import io.github.vitalijr2.aws.lambda.slf4j.AWSLambdaLoggerOutput; public interface ServiceProvider extends AWSLambdaLoggerOutput { diff --git a/core/src/test/java/org/example/TestServiceProvider.java b/core/src/test/java/org/example/TestServiceProvider.java index 2bd2eff..a8c454b 100644 --- a/core/src/test/java/org/example/TestServiceProvider.java +++ b/core/src/test/java/org/example/TestServiceProvider.java @@ -1,10 +1,10 @@ package org.example; +import io.github.vitalijr2.aws.lambda.slf4j.AWSLambdaLoggerConfiguration; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.slf4j.Marker; import org.slf4j.event.Level; -import uk.bot_by.aws_lambda.slf4j.AWSLambdaLoggerConfiguration; public class TestServiceProvider implements ServiceProvider { diff --git a/json-logger/src/main/java/uk/bot_by/aws_lambda/slf4j/json_output/JSONLoggerOutput.java b/json-logger/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/logger/JSONLoggerOutput.java similarity index 96% rename from json-logger/src/main/java/uk/bot_by/aws_lambda/slf4j/json_output/JSONLoggerOutput.java rename to json-logger/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/logger/JSONLoggerOutput.java index e02d4e6..440b746 100644 --- a/json-logger/src/main/java/uk/bot_by/aws_lambda/slf4j/json_output/JSONLoggerOutput.java +++ b/json-logger/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/logger/JSONLoggerOutput.java @@ -13,12 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package uk.bot_by.aws_lambda.slf4j.json_output; +package io.github.vitalijr2.aws.lambda.slf4j.logger; import static java.util.Objects.nonNull; import com.amazonaws.services.lambda.runtime.LambdaLogger; import com.amazonaws.services.lambda.runtime.LambdaRuntime; +import io.github.vitalijr2.aws.lambda.slf4j.AWSLambdaLoggerConfiguration; +import io.github.vitalijr2.aws.lambda.slf4j.AWSLambdaLoggerOutput; import java.io.ByteArrayOutputStream; import java.io.PrintStream; import java.text.DateFormat; @@ -31,8 +33,6 @@ import org.slf4j.MDC; import org.slf4j.Marker; import org.slf4j.event.Level; -import uk.bot_by.aws_lambda.slf4j.AWSLambdaLoggerConfiguration; -import uk.bot_by.aws_lambda.slf4j.AWSLambdaLoggerOutput; /** * An SLF4J Logger implementation for AWS Lambda with JSON output. diff --git a/json-logger/src/main/java/uk/bot_by/aws_lambda/slf4j/json_output/package-info.java b/json-logger/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/logger/package-info.java similarity index 70% rename from json-logger/src/main/java/uk/bot_by/aws_lambda/slf4j/json_output/package-info.java rename to json-logger/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/logger/package-info.java index c6a55c4..54fa8f4 100644 --- a/json-logger/src/main/java/uk/bot_by/aws_lambda/slf4j/json_output/package-info.java +++ b/json-logger/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/logger/package-info.java @@ -4,4 +4,4 @@ * @author Vitalij Berdinskih * @since 1.0.0 */ -package uk.bot_by.aws_lambda.slf4j.json_output; +package io.github.vitalijr2.aws.lambda.slf4j.logger; diff --git a/json-logger/src/main/resources/META-INF/services/io.github.vitalijr2.aws.lambda.slf4j.AWSLambdaLoggerOutput b/json-logger/src/main/resources/META-INF/services/io.github.vitalijr2.aws.lambda.slf4j.AWSLambdaLoggerOutput new file mode 100644 index 0000000..0cde75b --- /dev/null +++ b/json-logger/src/main/resources/META-INF/services/io.github.vitalijr2.aws.lambda.slf4j.AWSLambdaLoggerOutput @@ -0,0 +1 @@ +io.github.vitalijr2.aws.lambda.slf4j.logger.JSONLoggerOutput \ No newline at end of file diff --git a/json-logger/src/main/resources/META-INF/services/uk.bot_by.aws_lambda.slf4j.AWSLambdaLoggerOutput b/json-logger/src/main/resources/META-INF/services/uk.bot_by.aws_lambda.slf4j.AWSLambdaLoggerOutput deleted file mode 100644 index e4a1293..0000000 --- a/json-logger/src/main/resources/META-INF/services/uk.bot_by.aws_lambda.slf4j.AWSLambdaLoggerOutput +++ /dev/null @@ -1 +0,0 @@ -uk.bot_by.aws_lambda.slf4j.json_output.JSONLoggerOutput \ No newline at end of file diff --git a/json-logger/src/test/java/uk/bot_by/aws_lambda/slf4j/json_output/JSONLoggerOutputTest.java b/json-logger/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/logger/JSONLoggerOutputTest.java similarity index 98% rename from json-logger/src/test/java/uk/bot_by/aws_lambda/slf4j/json_output/JSONLoggerOutputTest.java rename to json-logger/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/logger/JSONLoggerOutputTest.java index f43f371..d8b500e 100644 --- a/json-logger/src/test/java/uk/bot_by/aws_lambda/slf4j/json_output/JSONLoggerOutputTest.java +++ b/json-logger/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/logger/JSONLoggerOutputTest.java @@ -1,4 +1,4 @@ -package uk.bot_by.aws_lambda.slf4j.json_output; +package io.github.vitalijr2.aws.lambda.slf4j.logger; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.core.IsEqual.equalTo; @@ -19,6 +19,7 @@ import static org.skyscreamer.jsonassert.JSONAssert.assertEquals; import com.amazonaws.services.lambda.runtime.LambdaLogger; +import io.github.vitalijr2.aws.lambda.slf4j.AWSLambdaLoggerConfiguration; import java.io.PrintStream; import java.text.DateFormat; import java.text.FieldPosition; @@ -38,7 +39,6 @@ import org.slf4j.Marker; import org.slf4j.event.Level; import org.slf4j.helpers.BasicMarkerFactory; -import uk.bot_by.aws_lambda.slf4j.AWSLambdaLoggerConfiguration; @ExtendWith(MockitoExtension.class) @Tag("fast") diff --git a/logger/src/main/java/uk/bot_by/aws_lambda/slf4j/lambda_logger/LambdaLoggerOutput.java b/logger/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/logger/LambdaLoggerOutput.java similarity index 96% rename from logger/src/main/java/uk/bot_by/aws_lambda/slf4j/lambda_logger/LambdaLoggerOutput.java rename to logger/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/logger/LambdaLoggerOutput.java index 9a0bff4..08bdc63 100644 --- a/logger/src/main/java/uk/bot_by/aws_lambda/slf4j/lambda_logger/LambdaLoggerOutput.java +++ b/logger/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/logger/LambdaLoggerOutput.java @@ -13,12 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package uk.bot_by.aws_lambda.slf4j.lambda_logger; +package io.github.vitalijr2.aws.lambda.slf4j.logger; import static java.util.Objects.nonNull; import com.amazonaws.services.lambda.runtime.LambdaLogger; import com.amazonaws.services.lambda.runtime.LambdaRuntime; +import io.github.vitalijr2.aws.lambda.slf4j.AWSLambdaLoggerConfiguration; +import io.github.vitalijr2.aws.lambda.slf4j.AWSLambdaLoggerOutput; import java.io.ByteArrayOutputStream; import java.io.PrintStream; import java.text.DateFormat; @@ -29,8 +31,6 @@ import org.slf4j.MDC; import org.slf4j.Marker; import org.slf4j.event.Level; -import uk.bot_by.aws_lambda.slf4j.AWSLambdaLoggerConfiguration; -import uk.bot_by.aws_lambda.slf4j.AWSLambdaLoggerOutput; /** * An SLF4J Logger implementation for AWS Lambda. diff --git a/logger/src/main/java/uk/bot_by/aws_lambda/slf4j/lambda_logger/package-info.java b/logger/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/logger/package-info.java similarity index 100% rename from logger/src/main/java/uk/bot_by/aws_lambda/slf4j/lambda_logger/package-info.java rename to logger/src/main/java/io/github/vitalijr2/aws/lambda/slf4j/logger/package-info.java diff --git a/logger/src/main/resources/META-INF/services/io.github.vitalijr2.aws.lambda.slf4j.AWSLambdaLoggerOutput b/logger/src/main/resources/META-INF/services/io.github.vitalijr2.aws.lambda.slf4j.AWSLambdaLoggerOutput new file mode 100644 index 0000000..7cea5b7 --- /dev/null +++ b/logger/src/main/resources/META-INF/services/io.github.vitalijr2.aws.lambda.slf4j.AWSLambdaLoggerOutput @@ -0,0 +1 @@ +io.github.vitalijr2.aws.lambda.slf4j.logger.LambdaLoggerOutput \ No newline at end of file diff --git a/logger/src/main/resources/META-INF/services/uk.bot_by.aws_lambda.slf4j.AWSLambdaLoggerOutput b/logger/src/main/resources/META-INF/services/uk.bot_by.aws_lambda.slf4j.AWSLambdaLoggerOutput deleted file mode 100644 index 3ecb1df..0000000 --- a/logger/src/main/resources/META-INF/services/uk.bot_by.aws_lambda.slf4j.AWSLambdaLoggerOutput +++ /dev/null @@ -1 +0,0 @@ -uk.bot_by.aws_lambda.slf4j.lambda_logger.LambdaLoggerOutput \ No newline at end of file diff --git a/logger/src/test/java/uk/bot_by/aws_lambda/slf4j/lambda_logger/LambdaLoggerOutputTest.java b/logger/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/logger/LambdaLoggerOutputTest.java similarity index 98% rename from logger/src/test/java/uk/bot_by/aws_lambda/slf4j/lambda_logger/LambdaLoggerOutputTest.java rename to logger/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/logger/LambdaLoggerOutputTest.java index 49571d5..1ac6800 100644 --- a/logger/src/test/java/uk/bot_by/aws_lambda/slf4j/lambda_logger/LambdaLoggerOutputTest.java +++ b/logger/src/test/java/io/github/vitalijr2/aws/lambda/slf4j/logger/LambdaLoggerOutputTest.java @@ -1,4 +1,4 @@ -package uk.bot_by.aws_lambda.slf4j.lambda_logger; +package io.github.vitalijr2.aws.lambda.slf4j.logger; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.core.StringStartsWith.startsWith; @@ -16,6 +16,7 @@ import static org.mockito.Mockito.when; import com.amazonaws.services.lambda.runtime.LambdaLogger; +import io.github.vitalijr2.aws.lambda.slf4j.AWSLambdaLoggerConfiguration; import java.io.PrintStream; import java.text.DateFormat; import java.text.FieldPosition; @@ -34,7 +35,6 @@ import org.slf4j.Marker; import org.slf4j.event.Level; import org.slf4j.helpers.BasicMarkerFactory; -import uk.bot_by.aws_lambda.slf4j.AWSLambdaLoggerConfiguration; @ExtendWith(MockitoExtension.class) @Tag("fast")