{"id":19513876,"url":"https://github.com/easonlai/serving-web-content-demo","last_synced_at":"2026-05-16T18:02:49.802Z","repository":{"id":123381907,"uuid":"376487296","full_name":"easonlai/serving-web-content-demo","owner":"easonlai","description":"Java Spring Boot web content with logback (logback-spring) logging configuration demo repo.","archived":false,"fork":false,"pushed_at":"2021-10-23T12:49:24.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T12:13:48.630Z","etag":null,"topics":["containerization","java","javaspringboot","logback","logback-spring","logging"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/easonlai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-13T08:44:19.000Z","updated_at":"2023-06-11T11:56:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"2ef7ab51-f50f-429c-9f98-53e9b492110f","html_url":"https://github.com/easonlai/serving-web-content-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easonlai%2Fserving-web-content-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easonlai%2Fserving-web-content-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easonlai%2Fserving-web-content-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easonlai%2Fserving-web-content-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easonlai","download_url":"https://codeload.github.com/easonlai/serving-web-content-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240762513,"owners_count":19853495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["containerization","java","javaspringboot","logback","logback-spring","logging"],"created_at":"2024-11-10T23:33:29.736Z","updated_at":"2025-09-24T01:05:23.395Z","avatar_url":"https://github.com/easonlai.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java Spring Boot Web Content with logback (logback-spring) Logging Configuration Demo Repo\nThis is demo repo to demostrate how to work with build-in \u0026 [logback (logback-spring)](https://docs.spring.io/spring-boot/docs/2.1.1.RELEASE/reference/html/boot-features-logging.html) logging in Java Spring Boot web. Logging will output to STROUT and log path (/logs/log.log). This repo also contain containerization materials for futher deployment in Kubernetes (K8S) cluster (e.g Azure Kubernetes Service (AKS)). \n\nReadme update 1.0\n\n## With Java Spring Boot Build-in Logging\n```shell\n/src/main/resources/application.properties\n```\n\n## With Logback (logback-spring) Logging\n* Logging format = Datetime, Host IP, Process ID, Log Level, Java Class for Logging, Client IP, Message for Logging\n```shell\n/src/main/resources/logback-spring.xml\n```\n\n## Build with Maven\n```shell\nmvn clean package\n```\n\n## Run locally\n```shell\njava -jar target/serving-web-content-demo-0.0.1.jar\n```\n\n## Test web app locally\n```shell\nhttp://localhost:8080\n```\n\n## Containerize\n1. Build a docker image using `Dockerfile`:\n   ```\n   docker build -t serving-web-content-demo .\n   ```\n2. Run docker image locally\n   ```\n   docker run --rm -p 8080:8080 serving-web-content-demo\n   ```\n3. Then you can access the web app at http://localhost:8080 in browser.\n\n## Deploy to K8S\n```shell\nkubectl apply -f serving-web-content-demo-aks.yaml\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasonlai%2Fserving-web-content-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasonlai%2Fserving-web-content-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasonlai%2Fserving-web-content-demo/lists"}