{"id":24269817,"url":"https://github.com/pteich/logger","last_synced_at":"2026-06-04T12:31:31.008Z","repository":{"id":46950214,"uuid":"237061202","full_name":"pteich/logger","owner":"pteich","description":"Simple wrapper around zerolog b/c I permanently need something like this and forget where I used it before.","archived":false,"fork":false,"pushed_at":"2023-10-31T21:56:29.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T15:19:52.028Z","etag":null,"topics":["golang","logging"],"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/pteich.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-29T19:09:46.000Z","updated_at":"2021-11-06T15:28:15.000Z","dependencies_parsed_at":"2025-01-15T15:10:29.617Z","dependency_job_id":"ff602514-4ff5-4b80-9148-653c7155f845","html_url":"https://github.com/pteich/logger","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pteich%2Flogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pteich%2Flogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pteich%2Flogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pteich%2Flogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pteich","download_url":"https://codeload.github.com/pteich/logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241967056,"owners_count":20050330,"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":["golang","logging"],"created_at":"2025-01-15T15:08:20.238Z","updated_at":"2026-06-04T12:31:30.953Z","avatar_url":"https://github.com/pteich.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logger\n--\n    import \"github.com/pteich/logger\"\n\n## Usage\n\n#### type Logger\n\n```go\ntype Logger struct {\n\tzerolog.Logger\n}\n```\n\nLogger represents a logger that embeds zerolog\n\n#### func  New\n\n```go\nfunc New(opts ...Option) *Logger\n```\nNew returns a new logger with specific options (zero to x)\n\n#### func  NewFromZerolog\n\n```go\nfunc NewFromZerolog(logger zerolog.Logger) *Logger\n```\nNewFromZerolog returns a new logger from an existing zerolog instance\n\n#### func (*Logger) Log\n\n```go\nfunc (log *Logger) Log(v ...interface{}) error\n```\nLog implements a common log interface\n\n#### type Option\n\n```go\ntype Option func(c *config)\n```\n\nOptions is an config setting function\n\n#### func  WithLogConsole\n\n```go\nfunc WithLogConsole() Option\n```\nWithLogConsole enabled human readable logging to console\n\n#### func  WithLogLevel\n\n```go\nfunc WithLogLevel(logLevel string) Option\n```\nWithLogLevel sets a specific loglevel given as string (e.g. debug)\n\n#### func  WithNanoSeconds\n\n```go\nfunc WithNanoSeconds() Option\n```\nWithNanoSeconds logs timestamp with nanos if millis are not enough\n\n#### func  WithServiceName\n\n```go\nfunc WithServiceName(serviceName string) Option\n```\nWithServiceName sets a service name as log field\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpteich%2Flogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpteich%2Flogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpteich%2Flogger/lists"}