{"id":21851869,"url":"https://github.com/ulbora/level_logger","last_synced_at":"2025-03-21T18:27:12.918Z","repository":{"id":57510426,"uuid":"237652784","full_name":"Ulbora/Level_Logger","owner":"Ulbora","description":"A logger with error, debug, and info levels. This logger can be set to a new log level by passing in an external variable.","archived":false,"fork":false,"pushed_at":"2020-02-02T23:12:33.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-26T13:22:02.077Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Ulbora.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":"2020-02-01T17:42:00.000Z","updated_at":"2020-02-02T23:10:59.000Z","dependencies_parsed_at":"2022-09-26T17:50:54.146Z","dependency_job_id":null,"html_url":"https://github.com/Ulbora/Level_Logger","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ulbora%2FLevel_Logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ulbora%2FLevel_Logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ulbora%2FLevel_Logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ulbora%2FLevel_Logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ulbora","download_url":"https://codeload.github.com/Ulbora/Level_Logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244846674,"owners_count":20520171,"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-28T01:11:53.518Z","updated_at":"2025-03-21T18:27:12.890Z","avatar_url":"https://github.com/Ulbora.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/Ulbora/Level_Logger)](https://goreportcard.com/report/github.com/Ulbora/Level_Logger)\n[![GoDoc](https://godoc.org/github.com/Ulbora/Level_Logger?status.svg)](https://godoc.org/github.com/Ulbora/Level_Logger)\n\nLevel Logger\n============\n\nA three level logger for Golang. It has the following levels: debug, info, and error.\n\nThe logging level can be set by setting the LogLevel varible as shown:\n\n### Error\nError logging is alwas on and cannot be turned off.\n\n```\n    var l Logger\n\ti, e := strconv.Atoi(\"1q\")\n\tl.Error(e)\n\n```\n#### Output\n```\n2020/02/02 15:57:51 ERROR:  strconv.Atoi: parsing \"1q\": invalid syntax\n\n```\n\n### Info\n```\n    var l Logger\n\tl.LogLevel = InfoLevel\n\ti, e := strconv.Atoi(\"1q\")\n\tl.Info(e)\n\n```\n\n#### Output\n```\n2020/02/02 15:57:51 INFO:  strconv.Atoi: parsing \"1q\": invalid syntax\n\n```\n\n### Debug\n```\n    var l Logger\n\tl.LogLevel = DebugLevel\n\ti, e := strconv.Atoi(\"1q\")\n\tl.Debug(e)\n\t\n```\n\n#### Output\n```\n2020/02/02 15:57:51 DEBUG:  strconv.Atoi: parsing \"1q\": invalid syntax\n\n```\n\n### Log All\n```\n    var l Logger\n\tl.LogLevel = AllLevel\n\ti, e := strconv.Atoi(\"1q\")\n\tl.Info(e)\n\t\n```\n\n#### Output\n```\n2020/02/02 15:57:51 INFO:  strconv.Atoi: parsing \"1q\": invalid syntax\n\n```\n\n\n### Logging Off\n```\n    var l Logger\n\tl.LogLevel = OffLevel\n\ti, e := strconv.Atoi(\"1q\")\n\tl.Info(e)\n\t\n```\n\n#### Output\n```\nNo logs are shown\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulbora%2Flevel_logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fulbora%2Flevel_logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulbora%2Flevel_logger/lists"}