{"id":21177351,"url":"https://github.com/summersec/logging-log4j2","last_synced_at":"2026-03-27T02:40:40.297Z","repository":{"id":105165546,"uuid":"451889643","full_name":"SummerSec/logging-log4j2","owner":"SummerSec","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-25T12:57:04.000Z","size":41798,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-01T04:22:26.725Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"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/SummerSec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-25T13:32:41.000Z","updated_at":"2022-01-26T10:27:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"a1e709b5-b7ce-4c56-af4f-9292e009e7e1","html_url":"https://github.com/SummerSec/logging-log4j2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SummerSec/logging-log4j2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SummerSec%2Flogging-log4j2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SummerSec%2Flogging-log4j2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SummerSec%2Flogging-log4j2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SummerSec%2Flogging-log4j2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SummerSec","download_url":"https://codeload.github.com/SummerSec/logging-log4j2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SummerSec%2Flogging-log4j2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31011273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T02:33:22.146Z","status":"ssl_error","status_checked_at":"2026-03-27T02:33:21.763Z","response_time":164,"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":[],"created_at":"2024-11-20T17:15:44.776Z","updated_at":"2026-03-27T02:40:40.257Z","avatar_url":"https://github.com/SummerSec.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Apache Log4j 2](https://logging.apache.org/log4j/2.x/)\n\nApache Log4j 2 is an upgrade to Log4j that provides significant improvements over its predecessor, Log4j 1.x,\nand provides many of the improvements available in Logback while fixing some inherent problems in Logback's architecture.\n\n[![Jenkins Status](https://img.shields.io/jenkins/s/https/builds.apache.org/job/Log4j%202.x.svg)](https://builds.apache.org/job/Log4j%202.x/)\n[![Travis Status](https://travis-ci.org/apache/logging-log4j2.svg?branch=master)](https://travis-ci.org/apache/logging-log4j2)\n[![Maven Central](https://img.shields.io/maven-central/v/org.apache.logging.log4j/log4j-api.svg)](http://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api)\n\n\n## Pull Requests on Github\n\nBy sending a pull request you grant the Apache Software Foundation sufficient rights to use and release the submitted \nwork under the Apache license. You grant the same rights (copyright license, patent license, etc.) to the \nApache Software Foundation as if you have signed a Contributor License Agreement. For contributions that are \njudged to be non-trivial, you will be asked to actually signing a Contributor License Agreement.\n\n## Usage\n\nUsers should refer to [Maven, Ivy, Gradle, and SBT Artifacts](http://logging.apache.org/log4j/2.x/maven-artifacts.html)\non the Log4j web site for instructions on how to include Log4j into their project using their chosen build tool.\n\nBasic usage of the `Logger` API:\n\n```java\npackage com.example;\n\nimport org.apache.logging.log4j.Logger;\nimport org.apache.logging.log4j.LogManager;\n\npublic class Example {\n    private static final Logger LOGGER = LogManager.getLogger();\n\n    public static void main(String... args) {\n        String thing = args.length \u003e 0 ? args[0] : \"world\";\n        LOGGER.info(\"Hello, {}!\", thing);\n        LOGGER.debug(\"Got calculated value only if debug enabled: {}\", () -\u003e doSomeCalculation());\n    }\n\n    private static Object doSomeCalculation() {\n        // do some complicated calculation\n    }\n}\n```\n\nAnd an example `log4j2.xml` configuration file:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cConfiguration\u003e\n  \u003cAppenders\u003e\n    \u003cConsole name=\"Console\" target=\"SYSTEM_OUT\"\u003e\n      \u003cPatternLayout pattern=\"%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n\"/\u003e\n    \u003c/Console\u003e\n  \u003c/Appenders\u003e\n  \u003cLoggers\u003e\n    \u003cLogger name=\"com.example\" level=\"INFO\"/\u003e\n    \u003cRoot level=\"error\"\u003e\n      \u003cAppenderRef ref=\"Console\"/\u003e\n    \u003c/Root\u003e\n  \u003c/Loggers\u003e\n\u003c/Configuration\u003e\n```\n\n## Documentation\n\nThe Log4j 2 User's Guide is available [here](https://logging.apache.org/log4j/2.x/manual/index.html) or as a downloadable\n[PDF](https://logging.apache.org/log4j/2.x/log4j-users-guide.pdf).\n\n## Requirements\n\nLog4j 2.4 and greater requires Java 7, versions 2.0-alpha1 to 2.3 required Java 6.\nSome features require optional dependencies; the documentation for these features specifies the dependencies.\n\n## License\n\nApache Log4j 2 is distributed under the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html).\n\n## Download\n\n[How to download Log4j](http://logging.apache.org/log4j/2.x/download.html),\nand [how to use it from Maven, Ivy and Gradle](http://logging.apache.org/log4j/2.x/maven-artifacts.html).\nYou can access the latest development snapshot by using the Maven repository `https://repository.apache.org/snapshots`, \nsee [Snapshot builds](https://logging.apache.org/log4j/2.x/maven-artifacts.html#Snapshot_builds).\n\n## Issue Tracking\n\nIssues, bugs, and feature requests should be submitted to the \n[JIRA issue tracking system for this project](https://issues.apache.org/jira/browse/LOG4J2).\n\nPull request on GitHub are welcome, but please open a ticket in the JIRA issue tracker first, and mention the \nJIRA issue in the Pull Request.\n\n## Building From Source\n\nLog4j requires Apache Maven 3.x. To build from source and install to your local Maven repository, execute the following:\n\n```sh\nmvn install\n```\n\n## Contributing\n\nWe love contributions! Take a look at\n[our contributing page](https://github.com/apache/logging-log4j2/blob/master/CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsummersec%2Flogging-log4j2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsummersec%2Flogging-log4j2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsummersec%2Flogging-log4j2/lists"}