{"id":22371294,"url":"https://github.com/thanhit95/log4sh","last_synced_at":"2025-07-30T20:31:59.417Z","repository":{"id":263106844,"uuid":"889365929","full_name":"thanhit95/log4sh","owner":"thanhit95","description":"log4sh library providing various logging features for shell scripts (bash, zsh)","archived":false,"fork":false,"pushed_at":"2024-12-01T05:06:10.000Z","size":93,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-01T05:28:30.813Z","etag":null,"topics":["bash","log","logger","logging","syslog","zsh"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thanhit95.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-16T07:22:21.000Z","updated_at":"2024-12-01T05:08:46.000Z","dependencies_parsed_at":"2024-12-01T05:28:55.687Z","dependency_job_id":"c47a1a4b-ae2a-4fec-8e0e-8678a030ea8c","html_url":"https://github.com/thanhit95/log4sh","commit_stats":null,"previous_names":["thanhit95/linux_shell_kit","thanhit95/log4sh"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanhit95%2Flog4sh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanhit95%2Flog4sh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanhit95%2Flog4sh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanhit95%2Flog4sh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thanhit95","download_url":"https://codeload.github.com/thanhit95/log4sh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228183286,"owners_count":17881597,"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":["bash","log","logger","logging","syslog","zsh"],"created_at":"2024-12-04T20:18:43.537Z","updated_at":"2024-12-04T20:18:44.244Z","avatar_url":"https://github.com/thanhit95.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# log4sh\n\n\n## Introduction\n\nLogging library supporting various features:\n\n- Log level control (min/max threshold)\n- Log message formatting\n- Multiple output channels (stdout, stderr, file, cmd, syslog)\n- Stack trace dump\n- Configuration file\n\nOutput example:\n\n```shell\n# Using the API fuctions:\n#   t_logdbg \"msg with debug level\"\n#   t_loginfo \"msg with info level\"\n#   t_log INFO \"msg with info level (alias API)\"\n#   t_log_st WARN \"illegal argument value\"\n#\n# Output:\n2024-11-30 16:25:14.862 [DEBUG] demo.sh:16: check_data: msg with debug level\n2024-11-30 16:25:14.864 [INFO ] demo.sh:17: check_data: msg with info level\n2024-11-30 16:25:14.866 [INFO ] demo.sh:18: check_data: msg with info level (alias API)\n2024-11-30 16:25:14.868 [WARN ] demo.sh:19: check_data: illegal argument value\n    at check_data (./demo.sh:19)\n    at send_request (./demo.sh:24)\n    at main (./demo.sh:29)\n```\n\n\n## Tutorials\n\nYou may checkout `examples` directory. It provides complete, step-by-step demonstrations.\n\n\n## History\n\nThis repository was originally named `linux_shell_kit`. At that time, it had some features such as `log4sh`, `proc_stat`, and others. I decided to change the development direction, so now it focuses solely on `log4sh` (and, of course, I've renamed this repository to `log4sh`).\n\nOther features, like `proc_stat`, will be moved to a new repository with original name: [https://github.com/thanhit95/linux_shell_kit](https://github.com/thanhit95/linux_shell_kit)\n\n\n## Author \u0026 license\n\nAuthor: Thanh Nguyen\n\nEmail: thanh.it1995 (at) gmail.com\n\nThis repo is licensed under the 3-Clause BSD License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthanhit95%2Flog4sh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthanhit95%2Flog4sh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthanhit95%2Flog4sh/lists"}