{"id":23330480,"url":"https://github.com/iopipe/iopipe-java-logger-log4j2","last_synced_at":"2026-05-08T10:35:46.473Z","repository":{"id":57729563,"uuid":"150795221","full_name":"iopipe/iopipe-java-logger-log4j2","owner":"iopipe","description":"Support for Log4j2 using the IOpipe Logger Plugin.","archived":false,"fork":false,"pushed_at":"2019-03-26T16:28:27.000Z","size":49,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-07T10:14:39.234Z","etag":null,"topics":["iopipe","java","log4j2","log4j2-appender","logger","logging"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/iopipe.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}},"created_at":"2018-09-28T21:14:29.000Z","updated_at":"2019-03-26T16:28:28.000Z","dependencies_parsed_at":"2022-09-11T06:20:38.743Z","dependency_job_id":null,"html_url":"https://github.com/iopipe/iopipe-java-logger-log4j2","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/iopipe/iopipe-java-logger-log4j2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iopipe%2Fiopipe-java-logger-log4j2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iopipe%2Fiopipe-java-logger-log4j2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iopipe%2Fiopipe-java-logger-log4j2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iopipe%2Fiopipe-java-logger-log4j2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iopipe","download_url":"https://codeload.github.com/iopipe/iopipe-java-logger-log4j2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iopipe%2Fiopipe-java-logger-log4j2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260962624,"owners_count":23089453,"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":["iopipe","java","log4j2","log4j2-appender","logger","logging"],"created_at":"2024-12-20T22:18:12.617Z","updated_at":"2026-05-08T10:35:41.442Z","avatar_url":"https://github.com/iopipe.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IOpipe Logger Adapter for log4j2 (Java)\n\n[![Download](https://api.bintray.com/packages/iopipe/iopipe-logger-log4j2/iopipe-logger-log4j2/images/download.svg) ](https://bintray.com/iopipe/iopipe-logger-log4j2/iopipe-logger-log4j2/_latestVersion)[![CircleCI](https://circleci.com/gh/iopipe/iopipe-java-logger-log4j2.svg?style=svg\u0026circle-token=b9a08049964f555f38ab316ba535369aa5fe8252)](https://circleci.com/gh/iopipe/iopipe-java-logger-log4j2)[![Javadocs](https://www.javadoc.io/badge/com.iopipe/iopipe-logger-log4j2.svg)](https://www.javadoc.io/doc/com.iopipe/iopipe-logger-log4j2)\n\nSupport for [Log4j2](https://logging.apache.org/log4j/2.x/) using the IOpipe\nLogger Plugin. This plugin is to be used with\nthe [IOpipe Java Agent](https://github.com/iopipe/iopipe-java).\n\nIt is licensed under the Apache 2.0.\n\n# Building With The Adapter\n\nYour `pom.xml` file may be modified to include the following dependency:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.iopipe\u003c/groupId\u003e\n  \u003cartifactId\u003eiopipe-logger-log4j2\u003c/artifactId\u003e\n\u003c/dependency\u003e\n```\n\nDue to the way shading works, you will be required to always use the\n[Log4j2 Transformer](https://github.com/edwgiz/maven-shaded-log4j-transformer)\nif you wish to support multiple appenders within your project and its\ndependencies. Not doing so may result in not being able to use multiple various\nplugins with Log4j2.\n\n# Configuration\n\nConfiguring your project to use this adapter for Log4j2 will be the same as\nconfiguring other appenders as specified in the [configuration documentation](https://logging.apache.org/log4j/2.x/manual/configuration.html).\n\nUsing the following as an example `log4j2.xml` resource at a very basic level\nto report to IOpipe (the error level may be modified accordingly as needed):\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cConfiguration status=\"error\"\u003e\n  \u003cAppenders\u003e\n    \u003cIOpipe name=\"IOpipe\"\u003e\n    \u003c/IOpipe\u003e\n  \u003c/Appenders\u003e\n  \u003cLoggers\u003e\n    \u003cRoot level=\"error\"\u003e\n      \u003cAppenderRef ref=\"IOpipe\" /\u003e\n    \u003c/Root\u003e\n  \u003c/Loggers\u003e\n\u003c/Configuration\u003e\n```\n\nOnce you’re setup, you will need to configure IOpipe to enable the logging plugin. You can do this by setting the `IOPIPE_LOGGER_ENABLED` environment variable to `true` in the AWS Lambda configuration.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiopipe%2Fiopipe-java-logger-log4j2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiopipe%2Fiopipe-java-logger-log4j2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiopipe%2Fiopipe-java-logger-log4j2/lists"}