A simple example of log handling in spring boot 📚
Basic configuration
mvn install
https://postgis.net/install/
mvn spring-boot:run
-
Compile and create docker image
mvn compile jib:dockerBuild
-
Docker compose
docker compose up
-
Or run the container
docker run -it --rm -p 8036:8036 spring-boot-logs-api:1.0.0
-
docker run -it --rm wondercode/composerize-plus:1.2.1 docker run -it --rm -p 8036:8036 spring-boot-logs-api:1.0.0 > docker-compose.yml
-
kompose convert
docker save spring-boot-logs-api:1.0.0 > spring-boot-logs-api:1.0.0.tar
https://www.baeldung.com/spring-boot-logging
https://www.baeldung.com/java-logging-rolling-file-appenders