{"id":18272717,"url":"https://github.com/maximevw/autolog-examples","last_synced_at":"2026-04-28T11:01:55.717Z","repository":{"id":42556094,"uuid":"233251338","full_name":"maximevw/autolog-examples","owner":"maximevw","description":"Examples of usage of Autolog library","archived":false,"fork":false,"pushed_at":"2022-03-31T19:04:09.000Z","size":38,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-25T11:50:15.642Z","etag":null,"topics":["aop","autolog","automation","logging","spring","spring-aop"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maximevw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-11T15:17:22.000Z","updated_at":"2020-10-24T14:05:29.000Z","dependencies_parsed_at":"2022-08-24T01:20:48.279Z","dependency_job_id":null,"html_url":"https://github.com/maximevw/autolog-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maximevw/autolog-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximevw%2Fautolog-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximevw%2Fautolog-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximevw%2Fautolog-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximevw%2Fautolog-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maximevw","download_url":"https://codeload.github.com/maximevw/autolog-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximevw%2Fautolog-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32377599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T09:24:15.638Z","status":"ssl_error","status_checked_at":"2026-04-28T09:24:15.071Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aop","autolog","automation","logging","spring","spring-aop"],"created_at":"2024-11-05T12:03:27.508Z","updated_at":"2026-04-28T11:01:55.701Z","avatar_url":"https://github.com/maximevw.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Autolog examples\n[![Apache 2.0 License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0.txt)\n\nExamples of usage of [Autolog library](https://github.com/maximevw/autolog).\n\n## Getting started\n### Prerequisites\n\nRunning Autolog examples requires **JDK 11 or greater**.\n\n### Installing\n#### autolog-spring-example\n\nThis example shows how to use Autolog in a Spring Boot application using Spring AOP for logging automation.\n\nTo run this example, execute the following command:\n```\nmvn clean package spring-boot:run -P\u003cprofile\u003e\n```\nIf you are using IntelliJ, use one of the run configurations `Run Spring Boot example with profile \u003cprofile\u003e`.\n\nThe available profiles are the following:\n- `default` (active if no specific profile is mentioned): example using standard system output, starts on port 8080.\n- `slf4j`: example using Slf4j with Logback Classic implementation and Logstash encoder, starts on port 8081.\n- `log4j2`: example using Log4j2, starts on port 8082.\n- `jdbc`: example using H2 in-memory database with JDBC connection, starts on port 8083. The H2 console is available at\n`localhost:8083/example/h2` and the JDBC URL is `jdbc:h2:mem:example`.\n\nOnce the application is started, call the API by executing the following command:\n```\ncurl \"http://localhost:\u003cport\u003e/example/hello?name=\u003cvalue\u003e\"\n```\n\nTo test the usage of `@Mask` annotation, open the following URL in a web browser, fill the form then submit it:\n```\nhttp://localhost:\u003cport\u003e/example/form\n```\n\n#### autolog-aspectj-example\n\nThis example shows how to use Autolog in a classic Java application using AOP based on AspectJ weaving for logging\nautomation.\n\nTo run this example, execute the following command:\n```\nmvn clean compile exec:java -Dexec.mainClass=\"com.github.maximevw.autolog.examples.AspectJApplication\"\n```\n\nIf you are using IntelliJ, use the run configuration `Run AspectJ example`.\n\n#### autolog-no-automation-example\n\nThis example shows how to use Autolog without logging automation but using direct calls to public methods provided by\nthe module `autolog-core`.\n\n**Note:** Using Autolog this way is not recommended since it is not the purpose of this library and it will make your\ncode less readable.\n\nTo run this example, execute the following command:\n```\nmvn clean compile exec:java -Dexec.mainClass=\"com.github.maximevw.autolog.examples.SimpleApplication\"\n```\n\nIf you are using IntelliJ, use the run configuration `Run no automation example`.\n\nYou can also download the bundled `autolog-core` jar [here](https://github.com/maximevw/autolog/releases/download/v1.2.0/autolog-core-1.2.0-bundle.jar)\n, then copy it into the directory where the example classes are compiled and run this command:\n```\njava -classpath classes:autolog-core-1.2.0-bundle.jar com.github.maximevw.autolog.examples.SimpleApplication\n```\n\n## License\n\nAutolog is distributed under [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximevw%2Fautolog-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximevw%2Fautolog-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximevw%2Fautolog-examples/lists"}