{"id":19226597,"url":"https://github.com/micro-tools/log4bro","last_synced_at":"2025-06-20T18:37:38.244Z","repository":{"id":8207223,"uuid":"57224744","full_name":"micro-tools/log4bro","owner":"micro-tools","description":"log4bro makes it hassle free to have compliant microservice ELK log behaviour","archived":false,"fork":false,"pushed_at":"2022-12-10T17:20:11.000Z","size":721,"stargazers_count":6,"open_issues_count":10,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-20T10:09:04.259Z","etag":null,"topics":["access-logs","correlation","elastic","json","kibana","log","logging","logstash"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/micro-tools.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":"2016-04-27T15:32:00.000Z","updated_at":"2020-12-13T07:36:36.000Z","dependencies_parsed_at":"2023-01-11T18:46:16.138Z","dependency_job_id":null,"html_url":"https://github.com/micro-tools/log4bro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/micro-tools/log4bro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micro-tools%2Flog4bro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micro-tools%2Flog4bro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micro-tools%2Flog4bro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micro-tools%2Flog4bro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micro-tools","download_url":"https://codeload.github.com/micro-tools/log4bro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micro-tools%2Flog4bro/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260931703,"owners_count":23084906,"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":["access-logs","correlation","elastic","json","kibana","log","logging","logstash"],"created_at":"2024-11-09T15:19:24.161Z","updated_at":"2025-06-20T18:37:33.226Z","avatar_url":"https://github.com/micro-tools.png","language":"JavaScript","readme":"# log4bro\n\n[![Build Status](https://travis-ci.org/micro-tools/log4bro.svg?branch=master)](https://travis-ci.org/micro-tools/log4bro)\n\n- log4bro makes it hassle free to have compliant microservice ELK stack log behaviour\n- just require \u0026 init and log via global variable in a few seconds\n- you can run in production mode to automatically switch log-levels\n- you can run in dockerMode to stop logfile writing and change output to json fields\n- you can attach some extra fields to json logs so that they are also loved by your ELK stack and your sysops\n- node + docker + log4bro = happy you, happy ELK stack and happy sysops\n- comes batteries included for express.js users (check /examples/express_example.js)\n- auto. access log in ELK format (cout or file)\n- switch log-level dynamically example: `global.LOG.changeLogLevel(\"INFO\");`\n\n# simple example\n\n```es6\nconst Logger = require(\"log4bro\");\n\nconst options = {\n  productionMode: true, //switches loglevel between DEBUG and WARN\n  logDir: \"logs\", //relative directory to write log file to\n  silence: false, //silences logger\n  loggerName: \"dev\", //ignore\n  dockerMode: true, //disables output to logfile\n  varKey: \"LOG\" //name of global variable\n};\n\nconst logger = new Logger(options);\n\nLOG.trace(\"bla\");\nLOG.debug(\"bla\");\nLOG.info(\"bla\");\nLOG.warn(\"bla\");\nLOG.error(\"bla\");\nLOG.fatal(\"bla\");\n```\n\n[Read More Here](docs/more.md)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicro-tools%2Flog4bro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicro-tools%2Flog4bro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicro-tools%2Flog4bro/lists"}