{"id":26678823,"url":"https://github.com/wervice/birch","last_synced_at":"2025-03-26T05:17:10.787Z","repository":{"id":239476284,"uuid":"799631287","full_name":"Wervice/birch","owner":"Wervice","description":"Uniform logging for many languages","archived":false,"fork":false,"pushed_at":"2024-05-12T22:02:40.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-13T19:24:15.052Z","etag":null,"topics":["logging","logging-framework","logging-library"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Wervice.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-12T17:57:33.000Z","updated_at":"2024-05-13T13:20:29.000Z","dependencies_parsed_at":"2024-05-12T19:24:15.949Z","dependency_job_id":null,"html_url":"https://github.com/Wervice/birch","commit_stats":null,"previous_names":["wervice/birch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wervice%2Fbirch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wervice%2Fbirch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wervice%2Fbirch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wervice%2Fbirch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wervice","download_url":"https://codeload.github.com/Wervice/birch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245591500,"owners_count":20640692,"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":["logging","logging-framework","logging-library"],"created_at":"2025-03-26T05:17:10.081Z","updated_at":"2025-03-26T05:17:10.778Z","avatar_url":"https://github.com/Wervice.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003e Birch \u003c/h1\u003e\n\u003ch2 align=\"center\"\u003e One uniform logger for many languages \u003c/h2\u003e\n\n## Ussage\n\n1. Include birch into your code\n    a) Copy contents from birch file into your code\n    b) Require/Include/Import... birch file in your code\n2. Define variables\n\n|Variable Name|Description|Example value|\n|-------------|-----------|-------------|\n|birch_path|Path to the log file to write into|`\"../birch.log\"`|\n|birch_verbose|Enable verbose logging messages|false|\n3. Call birch function\nBirch provides one new function: `birch(level, message)`   \nYou have to pass a level and a message to the function.   \nSupported levels are:\n\n|Short level name|Level name|Level number|Level letter|\n|----------|----------------|------------|------------|\n|verbo|verbose|0|V|\n|succ|success|1|S|\n|warn|warning|2|W|\n|erro|error|3|E|\n|fata|fatal|4|F|\n\nYou can now simply read the log file or look for logs in the terminal.   \nEvery log entry will be built like this:\n`[LEVEL] HH:MM:SS:MS mm/dd/YY | Message`\n\n## Examples\n```javascript\n// JavaScript\n\nconst birch_path = \"./.log\"\nconst birch_verbose = true\neval(fs.readFileSync(\"birch.mjs\").toString(\"ascii\")) // Eval birch into project\n\nbirch(\"succ\", \"Start program\");\n\nbirch(\"warn\", \"There is not much in this program\")\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwervice%2Fbirch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwervice%2Fbirch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwervice%2Fbirch/lists"}