{"id":19389386,"url":"https://github.com/mindorksopensource/go-log","last_synced_at":"2025-04-24T00:30:50.104Z","repository":{"id":57495103,"uuid":"154893663","full_name":"MindorksOpenSource/Go-Log","owner":"MindorksOpenSource","description":"A Go logger package which provides utility on top of Go's normal Log package.","archived":false,"fork":false,"pushed_at":"2018-11-19T19:39:23.000Z","size":2216,"stargazers_count":19,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-02T01:10:06.303Z","etag":null,"topics":["go","golang","logger","opensource","package","utility"],"latest_commit_sha":null,"homepage":"","language":"Go","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/MindorksOpenSource.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":"2018-10-26T20:57:30.000Z","updated_at":"2023-08-20T10:24:50.000Z","dependencies_parsed_at":"2022-09-05T15:40:51.253Z","dependency_job_id":null,"html_url":"https://github.com/MindorksOpenSource/Go-Log","commit_stats":null,"previous_names":["yashishdua/golog"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MindorksOpenSource%2FGo-Log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MindorksOpenSource%2FGo-Log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MindorksOpenSource%2FGo-Log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MindorksOpenSource%2FGo-Log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MindorksOpenSource","download_url":"https://codeload.github.com/MindorksOpenSource/Go-Log/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250539294,"owners_count":21447283,"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":["go","golang","logger","opensource","package","utility"],"created_at":"2024-11-10T10:16:08.447Z","updated_at":"2025-04-24T00:30:49.786Z","avatar_url":"https://github.com/MindorksOpenSource.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go-Log\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/MindorksOpenSource/Go-Log)](https://goreportcard.com/report/github.com/MindorksOpenSource/Go-Log)\n\nGo-Log is a utility log package built to customize the Go's normal log package. Prominent features are\n* Tag the logs into debug and error variant.\n* Add/Remove Timestamp to logs\n* Get the calling function details in logs\n* Synchronized with mutex locks to handle multiple logging\n\n### Install\n\n```bash\ngo get github.com/MindorksOpenSource/Go-Log\n```\n\n### Import\n\n```go\nimport (\n\t\"github.com/MindorksOpenSource/Go-Log\"\n)\n```\n## Examples\n\n### 1. GoLog Debug\n\n```go\nfunc main() {\n\tgolog.D(\"A basic primitive debug log.\")\n}\n```\n\nThis golog prints the message without any extra information like:\n\n```bash\n$ A basic primitive debug log.\n```\n\n### 2. GoLog Error\n\n```go\nfunc main() {\n\tgolog.E(\"This a basic primitive error log.\")\n}\n```\n\nThis golog prints the message while tagging it as an ERROR like:\n\n```bash\n$ [ERROR] This a basic primitive error log.\n```\n### Configuration (Additional Information)\n\n```go\n// Adds time to the log\ngolog.ConfigureTimer()\n// Adds the calling function path to log\ngolog.ConfigureCallingFunction()\n```\n\n### 3. GoLog Debug/Error with Time\n\n```go\nfunc main() {\n\tgolog.ConfigureTimer()\n\tgolog.D(\"A debug log with time\")\n}\n```\n\nThis golog prints the message with its timestamp like:\n\n```bash\n$ 2018/10/29 15:52:24  A debug log with time\n```\n\n### 4. GoLog Debug/Error with CallingFunction\n\n```go\nfunc main() {\n\tgolog.ConfigureCallingFunction()\n\tgolog.D(\"A debug log with calling function\")\n}\n```\n\nThis golog prints the message with its timestamp like:\n\n```bash\n$ [main.main] A debug log with calling function\n```\n\nYou can use both the configurations together also. Go gophers!\n\n\n### Contributor\n[Yashish Dua](https://github.com/yashishdua)\n\n\n### Show some :heart:\n\n[![GitHub stars](https://img.shields.io/github/stars/MindorksOpenSource/Go-Log.svg?style=social\u0026label=Star)](https://github.com/MindorksOpenSource/Go-Log) [![GitHub forks](https://img.shields.io/github/forks/MindorksOpenSource/Go-Log.svg?style=social\u0026label=Fork)](https://github.com/MindorksOpenSource/Go-Log/fork) [![GitHub watchers](https://img.shields.io/github/watchers/MindorksOpenSource/Go-Log.svg?style=social\u0026label=Watch)](https://github.com/MindorksOpenSource/Go-Log) [![GitHub followers](https://img.shields.io/github/followers/yashishdua.svg?style=social\u0026label=Follow)](https://github.com/MindorksOpenSource/Go-Log)  \n[![Twitter Follow](https://img.shields.io/twitter/follow/duayashish.svg?style=social)](https://twitter.com/duayashish)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindorksopensource%2Fgo-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmindorksopensource%2Fgo-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindorksopensource%2Fgo-log/lists"}