{"id":28243840,"url":"https://github.com/davewhit3/log","last_synced_at":"2025-07-18T00:08:43.345Z","repository":{"id":57596045,"uuid":"362722261","full_name":"davewhit3/log","owner":"davewhit3","description":"Golang logger","archived":false,"fork":false,"pushed_at":"2021-08-01T13:14:03.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-11T11:42:11.859Z","etag":null,"topics":["go","golang","log","logger","logging"],"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/davewhit3.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}},"created_at":"2021-04-29T07:06:04.000Z","updated_at":"2021-08-01T13:13:41.000Z","dependencies_parsed_at":"2022-09-12T09:11:55.652Z","dependency_job_id":null,"html_url":"https://github.com/davewhit3/log","commit_stats":null,"previous_names":["bialas1993/log"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/davewhit3/log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davewhit3%2Flog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davewhit3%2Flog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davewhit3%2Flog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davewhit3%2Flog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davewhit3","download_url":"https://codeload.github.com/davewhit3/log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davewhit3%2Flog/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265683462,"owners_count":23810850,"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","log","logger","logging"],"created_at":"2025-05-19T07:08:03.773Z","updated_at":"2025-07-18T00:08:43.338Z","avatar_url":"https://github.com/davewhit3.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logger #\nLogger is a simple cross platform Go logging library for Windows, Linux, FreeBSD, and\nmacOS, it can log to the Windows event log, Linux/macOS syslog, and an io.Writer.\n\n## Usage ##\n\nSet up the default logger to log the system log (event log or syslog):\n\n```go\npackage main\n\nimport (\n  \"github.com/bialas1993/log\"\n)\n\nfunc main() {\n\tlog.Debug(\"debug\")\n\tlog.With(log.LogFields{\n\t\t\"asd\":   \"bsd\",\n\t\t\"lorem\": \"ipsum\",\n\t\t\"bang\":  10,\n\t\t\"struct\": struct {\n\t\t\tA string\n\t\t}{\"aaaaaa\"},\n\t}).Info(\"info\")\n}\n```\n\n## Custom Format ##\n\n| Code                              | Example                                                  |\n|-----------------------------------|----------------------------------------------------------|\n| `log.SetFlags(log.Ldate)`         | ERROR: 2018/11/11 Error running Foobar: message          |\n| `log.SetFlags(log.Ltime)`         | ERROR: 09:42:45 Error running Foobar: message            |\n| `log.SetFlags(log.Lmicroseconds)` | ERROR: 09:42:50.776015 Error running Foobar: message     |\n| `log.SetFlags(log.Llongfile)`     | ERROR: /src/main.go:31: Error running Foobar: message    |\n| `log.SetFlags(log.Lshortfile)`    | ERROR: main.go:31: Error running Foobar: message         |\n| `log.SetFlags(log.LUTC)`          | ERROR: Error running Foobar: message                     |\n| `log.SetFlags(log.LstdFlags)`     | ERROR: 2018/11/11 09:43:12 Error running Foobar: message |\n\n\nMore info: https://golang.org/pkg/log/#pkg-constants","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavewhit3%2Flog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavewhit3%2Flog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavewhit3%2Flog/lists"}