{"id":25515287,"url":"https://github.com/ruskydev/concise-logging","last_synced_at":"2025-10-29T16:35:05.748Z","repository":{"id":277374472,"uuid":"932235668","full_name":"RuskyDev/concise-logging","owner":"RuskyDev","description":"An advanced yet easy-to-use logging library.","archived":false,"fork":false,"pushed_at":"2025-02-13T15:52:55.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T16:36:18.748Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/RuskyDev.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":"2025-02-13T15:36:59.000Z","updated_at":"2025-02-13T15:52:59.000Z","dependencies_parsed_at":"2025-02-15T23:45:23.497Z","dependency_job_id":null,"html_url":"https://github.com/RuskyDev/concise-logging","commit_stats":null,"previous_names":["ruskydev/concise-logging"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuskyDev%2Fconcise-logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuskyDev%2Fconcise-logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuskyDev%2Fconcise-logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RuskyDev%2Fconcise-logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RuskyDev","download_url":"https://codeload.github.com/RuskyDev/concise-logging/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239662746,"owners_count":19676435,"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":[],"created_at":"2025-02-19T13:20:19.781Z","updated_at":"2025-10-29T16:35:05.743Z","avatar_url":"https://github.com/RuskyDev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Concise Logging\nAn advanced yet easy-to-use logging library.\n\n## Features\n- Colorful Logging: Different colors for TRACE, DEBUG, INFO, WARN, ERROR, and FATAL messages.  \n- Custom Time Format: Pick 12-hour or 24-hour time, with optional Unix time.  \n- Extra Tags: Add custom tags to make log messages clearer.  \n- Multiple Methods: Log using TRACE, DEBUG, INFO, WARN, ERROR, and FATAL.  \n\n## Installation\n### Node.js  \nInstall via npm:\n```\nnpm install concise-logging\n```\n\n### Python  \nInstall via pip:\n```\npip install concise-logging\n```\n\n## Usage Examples\n### Node.js Example\n```js\nconst ConciseLogger = require('concise-logging');\n\nconst logger = new ConciseLogger({ time_format: 24, unix: true });\n\nlogger.trace(\"SYSTEM\", \"INIT\", \"This is a trace message.\");\nlogger.debug(\"DATABASE\", \"Debugging database connection.\");\nlogger.info(\"SERVER\", \"Server started successfully.\");\nlogger.warn(\"MEMORY\", \"Memory usage is high!\");\nlogger.error(\"API\", \"TIMEOUT\", \"Failed to fetch data from API.\");\nlogger.fatal(\"CRASH\", \"Application crashed unexpectedly.\");\n```\n\n### Python Example\n```python\nfrom ConciseLogging import ConciseLogger\n\nlogger = ConciseLogger(time_format=24, unix=True)\n\nlogger.trace(\"SYSTEM\", \"INIT\", message=\"This is a trace message.\")\nlogger.debug(\"DATABASE\", message=\"Debugging database connection.\")\nlogger.info(\"SERVER\", message=\"Server started successfully.\")\nlogger.warn(\"MEMORY\", message=\"Memory usage is high!\")\nlogger.error(\"API\", \"TIMEOUT\", message=\"Failed to fetch data from API.\")\nlogger.fatal(\"CRASH\", message=\"Application crashed unexpectedly.\")\n```\n\n## Log Output Example\n```\n[25/02/2025 14:35:22 1677332122] [TRACE] [SYSTEM] [INIT] This is a trace message.\n[25/02/2025 14:35:23 1677332123] [DEBUG] [DATABASE] Debugging database connection.\n[25/02/2025 14:35:24 1677332124] [INFO] [SERVER] Server started successfully.\n[25/02/2025 14:35:25 1677332125] [WARN] [MEMORY] Memory usage is high!\n[25/02/2025 14:35:26 1677332126] [ERROR] [API] [TIMEOUT] Failed to fetch data from API.\n[25/02/2025 14:35:27 1677332127] [FATAL] [CRASH] Application crashed unexpectedly.\n```\n\n## Configuration Options\n| Parameter     | Description                                 | Default |\n|---------------|---------------------------------------------|---------|\n| `time_format` | Time display format (`12` or `24` hours)     | `24`    |\n| `unix`        | Append Unix timestamp (`True` or `False`)    | `False` |\n\n## License\nThis project is licensed under the [MIT License](https://rusky.is-a.dev/cdn/licenses/MIT.txt).\n\n## Author\nMade with ♥ by [Ayaan](https://rusky.is-a.dev?ref=github)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruskydev%2Fconcise-logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruskydev%2Fconcise-logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruskydev%2Fconcise-logging/lists"}