{"id":15563946,"url":"https://github.com/mrsarm/log4jwebtracker","last_synced_at":"2025-09-11T07:32:19.463Z","repository":{"id":3619645,"uuid":"4685300","full_name":"mrsarm/log4jwebtracker","owner":"mrsarm","description":"Java web tool to setup at runtime the log level of Log4j appenders in an application, and read the log at runtime.","archived":false,"fork":false,"pushed_at":"2015-08-31T13:13:30.000Z","size":550,"stargazers_count":39,"open_issues_count":1,"forks_count":25,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-03T22:36:35.561Z","etag":null,"topics":["java-library","log4j","logging"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrsarm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-16T15:03:54.000Z","updated_at":"2023-04-25T07:25:05.000Z","dependencies_parsed_at":"2022-09-10T22:12:31.328Z","dependency_job_id":null,"html_url":"https://github.com/mrsarm/log4jwebtracker","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mrsarm/log4jwebtracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrsarm%2Flog4jwebtracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrsarm%2Flog4jwebtracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrsarm%2Flog4jwebtracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrsarm%2Flog4jwebtracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrsarm","download_url":"https://codeload.github.com/mrsarm/log4jwebtracker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrsarm%2Flog4jwebtracker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274595107,"owners_count":25314015,"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":["java-library","log4j","logging"],"created_at":"2024-10-02T16:31:59.410Z","updated_at":"2025-09-11T07:32:19.148Z","avatar_url":"https://github.com/mrsarm.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Log4j Web Tracker\n=================\n\n**Log4j Web Tracker** is an _open source_ web tool to setup at runtime the\n[Apache Log4j](http://logging.apache.org/log4j/) configuration loggers of an application.\nIt also has a tab that allows read the logs at runtime, or download them.\n\n\u003cimg src=\"https://raw.github.com/mrsarm/log4jwebtracker/master/artwork/log4jwebtracker_config.png\" /\u003e\n\nIt's distributed in a small .jar file _(log4jwebtracker.jar)_, and it must be placed in the\n`WEB-INF/lib` folder of the java web application.\n\nTo configure it, in the `WEB-INF/web.xml` file you have to add a mapping like this:\n\n```xml\n    \u003cservlet\u003e\n        \u003cservlet-name\u003eTrackerServlet\u003c/servlet-name\u003e\n        \u003cservlet-class\u003elog4jwebtracker.servlet.TrackerServlet\u003c/servlet-class\u003e\n    \u003c/servlet\u003e\n    \u003cservlet-mapping\u003e\n        \u003cservlet-name\u003eTrackerServlet\u003c/servlet-name\u003e\n        \u003curl-pattern\u003e/tracker/*\u003c/url-pattern\u003e\n    \u003c/servlet-mapping\u003e\n```\n\nIn the example the tool was mapped as `/tracker/*`, so if the application is accessible in\n[http://localhost:8080/myapp](http://localhost:8080/myapp), the right URL to access the tracker is:\n\n[http://localhost:8080/myapp/tracker](http://localhost:8080/myapp/tracker)\n\n\nIntroduction\n------------\n\nIn the first tab you can setup the level of each logger of the application, including the `root` logger.\nThe configuration are applied at the moment, but not change the original configuration placed\nin `log4j.properties`, `log4j.xml` or any configuration file, if you restart the application,\nthe original configuration will applied again.\n\n\u003cimg src=\"https://raw.github.com/mrsarm/log4jwebtracker/master/artwork/log4jwebtracker_setting.png\" /\u003e\n\nIn the second tab named _**Log**_, you can select an appender file and view the last content in the\nwebpage (the numbers of line are configurable), or download them.\n\n\u003cimg src=\"https://raw.github.com/mrsarm/log4jwebtracker/master/artwork/log4jwebtracker_log.png\" /\u003e\n\n\nLog4j configuration\n-------------------\n\n**Log4j** not need any special configuration for use this tool, you can use the usual way to\nconfigure the logging. Many developers used a util class from **Spring** in the web context\nto do this (`org.springframework.web.util.Log4jConfigListener`).\n\nAlso you can use the automatic setup (the configuration file must be placed on the\n`WEB-INF/classes` folder), or the manually basic setup, invoking\n`org.apache.log4j.PropertyConfigurator.configure(String configFilename)`.\n\n**Log4jWebTracker** provides a servlet class to do that, but it's optional:\n\n```xml\n    \u003cservlet\u003e\n            \u003cservlet-name\u003eLog4jInitServlet\u003c/servlet-name\u003e\n            \u003cservlet-class\u003elog4jwebtracker.servlet.init.Log4jInitServlet\u003c/servlet-class\u003e\n            \u003cinit-param\u003e\n                    \u003cparam-name\u003elog4jConfigLocation\u003c/param-name\u003e\n                    \u003cparam-value\u003eWEB-INF/classes/log4j.xml\u003c/param-value\u003e\n            \u003c/init-param\u003e\n            \u003cload-on-startup\u003e1\u003c/load-on-startup\u003e\n    \u003c/servlet\u003e\n```\n\n\nRequirements\n------------\n\n* Java 1.4+\n* Servlet container 2.3+ (like Apache Tomcat 4.1 or higher, or WebSphere 5.0+, etc.)\n\n\nDependencies\n------------\nNo dependencies with others libraries or frameworks, except of course **Log4j** _(tested only with v1.2)_.\n\n\nMaven projects\n--------------\n\nIf your project is building using **Apache Maven 2** or above, put this artifact in your `pom.xml`\nto import the jar:\n\n```xml\n    \u003cdependency\u003e\n        \u003cgroupId\u003elog4jwebtracker\u003c/groupId\u003e\n        \u003cartifactId\u003elog4jwebtracker\u003c/artifactId\u003e\n        \u003cversion\u003e1.0.2\u003c/version\u003e\n    \u003c/dependency\u003e\n```\n\nThe repository necessary to get the artifact is:\n\n```xml\n    \u003crepository\u003e\n            \u003cid\u003elog4jwebtracker-releases\u003c/id\u003e\n            \u003curl\u003ehttp://repo.log4jwebtracker.com/maven2\u003c/url\u003e\n    \u003c/repository\u003e\n```\n\n\nTO DO\n-----\n\n* Securize access (_anyway, can be done with filters, web security using web.xml policies, or others options_).\n* Configure appenders and patterns at runtime.\n* Filter field with regular expressions to match the output of the log.\n* _Send us your proposal..._\n\n\nLicense\n-------\n\nThe project is licensed under the terms of the\n[GNU Lesser GPL General Public License version 3](http://www.gnu.org/licenses/lgpl-3.0.html) _(LGPLv3)_.\n\n\nBinary and Source Code\n----------------------\n\nThis source code is available in [Github](https://github.com/mrsarm/log4jwebtracker).\n\nAlso the source is available in .jar format\n[here](http://repo.log4jwebtracker.com/maven2/log4jwebtracker/log4jwebtracker/1.0.2/log4jwebtracker-1.0.2-sources.jar).\n\nThe binary version in .jar format, ready to use for your project is\n[here](http://repo.log4jwebtracker.com/maven2/log4jwebtracker/log4jwebtracker/1.0.2/log4jwebtracker-1.0.2.jar).\n\n\nAbout\n-----\n\n**Author**: My name is **Mariano Ruiz**, I work as _Software \u0026 Web Developer_. I'm from Argentina.\n\n**My Home**: http://www.mrdev.com.ar | **Email**: [marianoruiz@mrdev.com.ar](mailto:marianoruiz@mrdev.com.ar)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrsarm%2Flog4jwebtracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrsarm%2Flog4jwebtracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrsarm%2Flog4jwebtracker/lists"}