{"id":26016594,"url":"https://github.com/grb-workspace/java-logger-intro","last_synced_at":"2025-09-11T18:48:18.404Z","repository":{"id":280513660,"uuid":"942220709","full_name":"GRB-Workspace/Java-Logger-Intro","owner":"GRB-Workspace","description":"A Spring Boot project that demonstrates Java’s inbuilt logging capabilities through a REST controller. It illustrates how to configure and use multiple logging levels—INFO, WARN, ERROR, FATAL, DEBUG, and TRACE.","archived":false,"fork":false,"pushed_at":"2025-03-03T21:16:05.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-03T21:29:47.716Z","etag":null,"topics":["application-configuration","java","logger","logging","rest","sample-project","spring-boot","tutorial"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GRB-Workspace.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-03-03T19:09:15.000Z","updated_at":"2025-03-03T21:21:54.000Z","dependencies_parsed_at":"2025-03-03T21:40:13.952Z","dependency_job_id":null,"html_url":"https://github.com/GRB-Workspace/Java-Logger-Intro","commit_stats":null,"previous_names":["grb-sample-workspace/java-logger-intro"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GRB-Workspace/Java-Logger-Intro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GRB-Workspace%2FJava-Logger-Intro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GRB-Workspace%2FJava-Logger-Intro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GRB-Workspace%2FJava-Logger-Intro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GRB-Workspace%2FJava-Logger-Intro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GRB-Workspace","download_url":"https://codeload.github.com/GRB-Workspace/Java-Logger-Intro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GRB-Workspace%2FJava-Logger-Intro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274689806,"owners_count":25331897,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["application-configuration","java","logger","logging","rest","sample-project","spring-boot","tutorial"],"created_at":"2025-03-06T04:22:12.489Z","updated_at":"2025-09-11T18:48:17.929Z","avatar_url":"https://github.com/GRB-Workspace.png","language":"Java","readme":"# Java Logger Intro [![Gayanuka Bulegoda][grb-shield]][grb-url]\n\nThis project demonstrates Java's built-in logger capabilities through a simple Spring Boot REST controller. It serves as a practical example for configuring and using various logging levels within a Spring Boot application.\n\n## Overview\n\nThe Java Logger Intro Sample project is designed to help developers understand how to implement and configure Java’s inbuilt logging framework within a Spring Boot environment. It illustrates the usage of multiple logging levels to provide insights into system operations, warnings, errors, and detailed debugging information.\n\n## Features\n- **Spring Boot REST Controller**: Provides an endpoint to trigger logging.\n- **Multiple Logging Levels**: Demonstrates INFO, WARN, ERROR, FATAL, DEBUG, and TRACE levels.\n- **Configurable Logging**: Easy-to-customize logging settings using `application.properties`.\n\n## Prerequisites\n- Java JDK 17 or later\n- Maven build tool\n- Basic understanding of Spring Boot\n\n## Installation\n\n1. **Clone the repository:**\n\n   ```bash\n   https://github.com/GRB-Workspace/Java-Logger-Intro.git\n   ```\n\n2. **Navigate to the project directory:**\n\n   ```bash\n   cd Java-Logger-Intro\n   ```\n\n3. **Build and run the application:**\n\n   ```bash\n   mvn spring-boot:run\n   ```\n\n## Usage\n\nOnce the application is running, you can access the sample REST endpoint at:\n\n```bash\nhttp://localhost:8085/log\n```\n\nTriggering the endpoint will log messages using the different logging levels as configured.\n\n## Configuration\n\nThe logging behavior is controlled through the `application.properties` file. For example, you can adjust the root logging level:\n\n```properties\nlogging.level.root=INFO\nlogging.level.com.example=DEBUG\n```\n\nModify these settings to increase or decrease log verbosity as needed.\n\n## Logging Levels\n\n- **INFO**: Logs general system information.\n- **WARN**: Logs warnings about non-critical issues.\n- **ERROR**: Logs critical errors.\n- **FATAL**: Logs fatal errors that may cause the system to crash.\n- **DEBUG**: Logs detailed information for debugging purposes.\n- **TRACE**: Logs very detailed, step-by-step trace information.\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request with your improvements.\n\n## License\n\nThis project is distributed under the [MIT License](LICENSE).\n\n## Contact\n\nGayanuka Bulegoda  \n[Website](https://grbulegoda.me/) • [GitHub](https://github.com/gayanukabulegoda)\n\n---\n\n\u003cdiv align=\"center\"\u003e\n  \u003cp\u003e\n    \u0026copy; 2025 Gayanuka Bulegoda\n  \u003c/p\u003e\n\u003c/div\u003e\n\n---\n\n[grb-shield]: https://img.shields.io/badge/GRB-000000?style=for-the-badge\u0026logo=github\u0026logoColor=white\n[grb-url]: https://grbulegoda.me/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrb-workspace%2Fjava-logger-intro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrb-workspace%2Fjava-logger-intro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrb-workspace%2Fjava-logger-intro/lists"}