{"id":19692310,"url":"https://github.com/root27/mylogger","last_synced_at":"2025-09-09T05:32:21.303Z","repository":{"id":241863884,"uuid":"808065071","full_name":"root27/mylogger","owner":"root27","description":"Logger in Golang","archived":false,"fork":false,"pushed_at":"2024-05-31T14:46:11.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-27T11:46:49.594Z","etag":null,"topics":["golang","logger","logging","package"],"latest_commit_sha":null,"homepage":"","language":"Go","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/root27.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-30T10:05:55.000Z","updated_at":"2024-05-31T14:46:14.000Z","dependencies_parsed_at":"2024-05-30T11:51:17.257Z","dependency_job_id":"6dc561cc-3ec4-46c3-b8f1-2e4d07f3887a","html_url":"https://github.com/root27/mylogger","commit_stats":null,"previous_names":["root27/mylogger"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/root27/mylogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root27%2Fmylogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root27%2Fmylogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root27%2Fmylogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root27%2Fmylogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/root27","download_url":"https://codeload.github.com/root27/mylogger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root27%2Fmylogger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274249567,"owners_count":25249390,"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","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["golang","logger","logging","package"],"created_at":"2024-11-11T19:12:56.098Z","updated_at":"2025-09-09T05:32:21.268Z","avatar_url":"https://github.com/root27.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logger in Golang\n\nThis is customized logging package in Golang. It can be used to log errors, infos, warnings, fatal errors in desired file. \n\n\n## Installation\n\n```bash\n\ngo get github.com/root27/mylogger\n\n```\n---\n\n## Usage\n\n- Without Colors\n\n```go\n\npackage main\n\nimport (\n    \"github.com/root27/mylogger\"\n    \"log\"\n)\n\nfunc main() {\n    logger, err := mylogger.New(\"app.log\", \"MYAPP\", mylogger.DEBUG)\n    \n    if err != nil {\n\t\tlog.Fatalf(\"could not create logger\")\n\t}\n\n    defer logger.Close()\n\n    logger.Debug(\"This is a debug message\")\n    logger.Info(\"This is an info message\")\n    logger.Warn(\"This is a warning message\")\n    logger.Error(\"This is an error message\")\n    logger.Fatal(\"This is a fatal message\")\n}\n\n```\n\n- With Colors\n\n```go\n\npackage main\n\n\nimport (\n    \"github.com/root27/mylogger\"\n    \"log\"\n)\n\nfunc main() {\n    logger, err := mylogger.New(\"app.log\", \"MYAPP\", mylogger.DEBUG)\n    \n    if err != nil {\n\t\tlog.Fatalf(\"could not create logger\")\n\t}\n\n    defer logger.Close()\n    \n    logger.InfoWithColor(\"this is colorful info\")\n    logger.WarnWithColor(\"this is colorful warning\")\n    logger.ErrorWithColor(\"this is colorful error\")\n\n}\n\n```\n\n\n---\n\n## Test Results\n\n```bash\n\n[2024-05-30T13:10:32+03:00] myapp [DEBUG] This is a debug message\n[2024-05-30T13:10:32+03:00] myapp [INFO] This is an info message\n[2024-05-30T13:10:32+03:00] myapp [WARN] This is a warning message\n[2024-05-30T13:10:32+03:00] myapp [ERROR] This is an error message\n[2024-05-30T13:10:32+03:00] myapp [FATAL] This is a fatal message\n\n```\n- Color Results\n\n${{\\color{red}{\\text{[2024-05-31T17:12:13+03:00] myapp [ERROR] this is colorful error}}}}$\n${{\\color{yellow}{\\text{[2024-05-31T17:12:13+03:00] myapp [WARN] this is colorful warning}}}}$\n${{\\color{green}{\\text{[2024-05-31T17:12:13+03:00] myapp [INFO] this is colorful info}}}}$\n\n---\n\n## Features\n\n- Colorful Info, Warning and Error messages\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froot27%2Fmylogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froot27%2Fmylogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froot27%2Fmylogger/lists"}