{"id":18513580,"url":"https://github.com/flike/golog","last_synced_at":"2025-08-09T03:55:52.289Z","repository":{"id":34186946,"uuid":"38039326","full_name":"flike/golog","owner":"flike","description":"simple log library for Golang","archived":false,"fork":false,"pushed_at":"2015-06-25T09:31:58.000Z","size":132,"stargazers_count":14,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-19T13:45:51.083Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/flike.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-25T09:05:25.000Z","updated_at":"2024-06-19T13:45:51.084Z","dependencies_parsed_at":"2022-09-02T00:01:49.248Z","dependency_job_id":null,"html_url":"https://github.com/flike/golog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flike%2Fgolog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flike%2Fgolog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flike%2Fgolog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flike%2Fgolog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flike","download_url":"https://codeload.github.com/flike/golog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223367797,"owners_count":17134191,"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":"2024-11-06T15:39:25.241Z","updated_at":"2024-11-06T15:39:26.620Z","avatar_url":"https://github.com/flike.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"#golog\n\nsimple log library for Golang\n\n##case \n\n```\npackage main\n\nimport (\n\t\"fmt\"\n\t. \"github.com/flike/golog\"\n\t\"os\"\n)\n\nfunc main() {\n\tpath := \"/tmp/test_log\"\n\tos.RemoveAll(path)\n\tos.Mkdir(path, 0777)\n\tfileName := path + \"/test.log\"\n\n\th, err := NewRotatingFileHandler(fileName, 1024*1024, 2)\n\tif err != nil {\n\t\tfmt.Println(err.Error())\n\t}\n\t//GlobalLogger is a global variable\n\tGlobalLogger = New(h, Lfile|Ltime|Llevel)\n\tGlobalLogger.SetLevel(LevelTrace)\n\targs1 := \"go\"\n\targs2 := \"log\"\n\targs3 := \"golog\"\n\t//the log will record into the file(/tmp/test_log/test.log)\n\tDebug(\"Mode\", \"main\", \"OK\", 0, \"args1\", args1, \"args2\", args2, \"args3\", args3)\n\tGlobalLogger.Close()\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflike%2Fgolog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflike%2Fgolog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflike%2Fgolog/lists"}