{"id":13672975,"url":"https://github.com/stritti/log4js","last_synced_at":"2025-04-05T01:08:44.146Z","repository":{"id":15386380,"uuid":"18117964","full_name":"stritti/log4js","owner":"stritti","description":"Log4js - The Logging Framework for JavaScript with no runtime dependencies ","archived":false,"fork":false,"pushed_at":"2023-02-27T22:41:32.000Z","size":3160,"stargazers_count":456,"open_issues_count":29,"forks_count":57,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-01T19:02:56.178Z","etag":null,"topics":["javascript","log4js","logging"],"latest_commit_sha":null,"homepage":"https://stritti.github.io/log4js/","language":"XSLT","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/stritti.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2014-03-25T21:56:06.000Z","updated_at":"2025-03-25T03:24:28.000Z","dependencies_parsed_at":"2024-01-17T04:19:03.232Z","dependency_job_id":null,"html_url":"https://github.com/stritti/log4js","commit_stats":{"total_commits":431,"total_committers":13,"mean_commits":33.15384615384615,"dds":"0.25058004640371234","last_synced_commit":"c159e7327741ccedd48bbd831b893223c7aaf488"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stritti%2Flog4js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stritti%2Flog4js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stritti%2Flog4js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stritti%2Flog4js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stritti","download_url":"https://codeload.github.com/stritti/log4js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271532,"owners_count":20911587,"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":["javascript","log4js","logging"],"created_at":"2024-08-02T09:02:01.588Z","updated_at":"2025-04-05T01:08:44.124Z","avatar_url":"https://github.com/stritti.png","language":"XSLT","funding_links":[],"categories":["XSLT"],"sub_categories":[],"readme":"[![Apache License](http://img.shields.io/badge/license-Apache%202.0-blue.svg?style=flat)](LICENSE.txt)\n[![Github Releases](https://img.shields.io/github/downloads/atom/atom/latest/total.svg)](https://github.com/stritti/log4js/releases)\n[![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/)\n[![Build Status](https://secure.travis-ci.org/stritti/log4js.png?branch=master)](http://travis-ci.org/stritti/log4js)\n\nLog4js\n======\n\nLog4js - The Logging Framework for JavaScript with no runtime dependencies \n| Since [2005](https://github.com/stritti/log4js/commit/0b17184d2a998f6ff884261ba433c3e4f01cc95e)\n\n## Usage\n\n* Download the most current [release](https://github.com/stritti/log4js/releases) and unzip the archive.\n* Copy the file `js/log4js.min.js` to your project.\n* Add the JavaScript file to head of HTML page:\n  ````html\n  \u003chead\u003e\n    \u003cscript src=\"log4js.min.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n  \u003c/head\u003e\n\n  ````\n* Add script for instantiation of Logger:\n  ````javascript\n  let consoleLog = new Log4js.Logger(\"consoleTest\");\n  consoleLog.setLevel(Log4js.Level.ALL);\n  let consoleAppender = new Log4js.ConsoleAppender(true);\n  consoleLog.addAppender(consoleAppender);\n  \n  ````\n* Then you are able to add logging event:\n  ````javascript\n  consoleLog.trace('I was traced!')\n  ````\n\nWithin sources there is a more detailed [example](log4js/src/main/example/index.html).\n\n## Development\n\nThe project is seperated in modules. Core JavaScript module is located in subdirectory `log4js` \n\n### Structure\n````\n├───log4js: Main JavaScript Log4js module \n├───log4js-servlet: Java Servlet to collect AJAX-Logs serverside\n├───log4js-solr: configuration to collect logs using Apache SOLR\n├───log4js-site: (outdated) project documentation\n \n````\n\n### Log4js\n\u003e Main JavaScript module\n\nTo build the JavaScript library we use [npm](https://www.npmjs.com/) and [grunt](https://gruntjs.com/). \n\n````\ncd log4js\nnpm install\ngrunt build\n````\n\nInclude then the `target/log4js.min.js` file in your project.\n\nMore details in the [Wiki](https://github.com/stritti/log4js/wiki/Development)\n\n### Log4js Servlet\n\nThe servlet is Java based project which is compiled using `maven`.\n\n### Log4js SOLR\n\nFor more details see [README.md](log4js-solr/README.md) in the subdirectory [log4js-solr](log4js-solr)\n\n### Log4js Site\n\nOutdated documentation.\n\n## Contribution\n\n[Pull Requests](https://github.com/stritti/log4js/pulls) are very welcome.\n\n## Other JavaScript Logger\nThere are a lot other projects which are started logging in JavaScript:\n\nThere is a very active fork of current log4js framework modified for node.js usage: https://github.com/nomiddlename/log4js-node\n\nFurther loggers could be found (and added!) in the [Wiki](https://github.com/stritti/log4js/wiki/Other-JavaScript-Logger).\n\n# License\n[LICENSE.txt](LICENSE.txt)\n\n[![Analytics](https://ga-beacon.appspot.com/UA-327996-12/stritti/log4js)](https://github.com/igrigorik/ga-beacon) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstritti%2Flog4js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstritti%2Flog4js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstritti%2Flog4js/lists"}