{"id":54427,"library":"spring-boot-starter-log4j2","title":"Spring Boot Starter Log4j2","description":"Spring Boot starter for using Log4j2 as the logging framework, providing auto-configuration and dependency management.","status":"active","version":"4.1.0","language":"java","source_language":null,"source_url":"https://github.com/spring-projects/spring-boot","tags":["spring-boot","logging","log4j2","starter"],"install":[{"cmd":"<dependency>\n  <groupId>org.springframework.boot</groupId>\n  <artifactId>spring-boot-starter-log4j2</artifactId>\n  <version>4.1.0</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.springframework.boot:spring-boot-starter-log4j2:4.1.0'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"LogManager","correct":"org.apache.logging.log4j.LogManager"}],"quickstart":{"code":"import org.apache.logging.log4j.LogManager;\nimport org.apache.logging.log4j.Logger;\n\nLogger logger = LogManager.getLogger(MyClass.class);\nlogger.info(\"Hello, Log4j2!\");","lang":"java","description":"Minimal Log4j2 logger usage with LogManager."},"warnings":[{"fix":"Use Log4j2 version 2.17.0 or later to mitigate Log4Shell vulnerability.","message":"Log4j2 has known security vulnerabilities (e.g., CVE-2021-44228) in older versions.","severity":"breaking","affected_versions":"<2.17.0"}],"env_vars":null,"search_vec":"'auto':17 'auto-configur':16 'boot':2,6,24 'configur':18 'depend':20 'framework':14 'log':13,25 'log4j2':4,10,26 'manag':21 'provid':15 'spring':1,5,23 'spring-boot':22 'starter':3,7,27 'use':9","created_at":"2026-06-15T09:05:30.066325+00:00","updated_at":"2026-06-15T09:05:30.066325+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://spring.io/projects/spring-boot","github":"https://github.com/spring-projects/spring-boot","docs":"https://appdoc.app/artifact/org.springframework.boot/spring-boot-starter-log4j2/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["logging"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}