{"id":37802382,"url":"https://github.com/bdlm/log","last_synced_at":"2026-01-16T15:27:12.636Z","repository":{"id":54176531,"uuid":"141231117","full_name":"bdlm/log","owner":"bdlm","description":"Structured logging for Go","archived":false,"fork":false,"pushed_at":"2025-10-06T21:47:56.000Z","size":195,"stargazers_count":13,"open_issues_count":2,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T23:28:17.255Z","etag":null,"topics":["go","golang","logger","logging","structured-logging"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/bdlm/log/v2","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/bdlm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-07-17T04:27:36.000Z","updated_at":"2025-10-06T21:46:41.000Z","dependencies_parsed_at":"2024-05-06T16:31:48.875Z","dependency_job_id":"830ac7ff-aa52-4add-83d0-b890fe7188da","html_url":"https://github.com/bdlm/log","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/bdlm/log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdlm%2Flog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdlm%2Flog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdlm%2Flog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdlm%2Flog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bdlm","download_url":"https://codeload.github.com/bdlm/log/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdlm%2Flog/sbom","scorecard":{"id":229129,"data":{"date":"2025-08-11","repo":{"name":"github.com/bdlm/log","commit":"04717ae8c926d336a3c43d76fc72d8cb98725d8d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 2/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: goCommand not pinned by hash: .travis.sh:6","Info:   0 out of   1 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T04:29:43.296Z","repository_id":54176531,"created_at":"2025-08-17T04:29:43.296Z","updated_at":"2025-08-17T04:29:43.296Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","logging","structured-logging"],"created_at":"2026-01-16T15:27:12.538Z","updated_at":"2026-01-16T15:27:12.606Z","avatar_url":"https://github.com/bdlm.png","language":"Go","readme":"# log\n\n\u003ca href=\"https://github.com/mkenney/software-guides/blob/master/STABILITY-BADGES.md#mature\"\u003e\u003cimg src=\"https://img.shields.io/badge/stability-mature-008000.svg\" alt=\"Mature\"\u003e\u003c/a\u003e This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). This package is considered mature, you should expect package stability in \u003cstrong\u003eMinor\u003c/strong\u003e and \u003cstrong\u003ePatch\u003c/strong\u003e version releases\n\n- **Major**: backwards incompatible package updates\n- **Minor**: feature additions\n- **Patch**: bug fixes, backward compatible model and function changes, etc.\n\n**[CHANGELOG](CHANGELOG.md)**\u003cbr\u003e\n\n\u003ca href=\"https://github.com/bdlm/log/blob/master/CHANGELOG.md\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/bdlm/log\" alt=\"Release\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pkg.go.dev/github.com/bdlm/log/v2\"\u003e\u003cimg src=\"https://godoc.org/github.com/bdlm/log?status.svg\" alt=\"GoDoc\"\u003e\u003c/a\u003e\n\u003ca href=\"https://travis-ci.com/bdlm/log\"\u003e\u003cimg src=\"https://travis-ci.com/bdlm/log.svg?branch=master\" alt=\"Build status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/bdlm/log\"\u003e\u003cimg src=\"https://img.shields.io/codecov/c/github/bdlm/log/master.svg\" alt=\"Coverage status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://goreportcard.com/report/github.com/bdlm/log\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/bdlm/log\" alt=\"Go Report Card\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/bdlm/log/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues-raw/bdlm/log.svg\" alt=\"Github issues\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/bdlm/log/pulls\"\u003e\u003cimg src=\"https://img.shields.io/github/issues-pr/bdlm/log.svg\" alt=\"Github pull requests\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/bdlm/log/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"MIT\"\u003e\u003c/a\u003e\n\n`bdlm/log` is a fork of the excellent [`sirupsen/logrus`](https://github.com/sirupsen/logrus) package.\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/bdlm/log/wiki/assets/images/tty-header.png\" width=\"75%\"\u003e\n\u003c/p\u003e\n\nThis package adds:\n\n* support for sanitizing strings from log output to aid in preventing leaking sensitive data.\n* additional default fields `host` and `caller`.\n* verbose output including the full backtrace of logger calls.\n* support for suppressing any default field.\n* TTY formatting and coloring of JSON output.\n* updated formatting for TTY text output.\n* updated default TTY color scheme and color customization.\n* gRPC request interceptors.\n\n#\n\n`bdlm/log` is a structured logger for Go and is fully API compatible with both the standard libaray `log` package as well as the [`sirupsen/logrus`](https://github.com/sirupsen/logrus) package.\n\n## Install\n\n```\ngo get github.com/bdlm/log/v2\n```\n\n## Examples\n\n#### [User documentation](https://github.com/bdlm/log/wiki)\n\n### Simple usage\n\nThe simplest way to use `bdlm/log` is with the exported package-level logger:\n\n```go\npackage main\n\nimport (\n    log \"github.com/bdlm/log\"\n)\n\nfunc main() {\n    log.WithFields(log.Fields{\n        \"animal\": \"walrus\",\n    }).Info(\"A walrus appears\")\n}\n```\n\n## Compatibility\n\nNote that `bdlm/log` is fully api-compatible with the stdlib logger, so you can replace your `log` imports everywhere or using a strangler pattern with `\"github.com/bdlm/log\"` and add the full logging flexibility to your service without impacting existing code.\n\nThe default log format of this package does not match the stdlib logger's default output so a compatible formatter, `StdFormatter`, is provided which includes the additional information inline:\n\n```go\nlog.SetFormatter(\u0026log.StdFormatter{})\n```\n\nWhich results in the following log output. `StdFormatter` does not have a TTY feature:\n```\n2018/08/17 20:17:45 Oh, look, a bird... level=\"debug\" data.animal=\"bird\" data.count=1 caller=\"main.go:39 main.main\" host=\"myhost\"\n2018/08/17 20:17:45 A group of walrus emerges from the ocean level=\"info\" data.animal=\"walrus\" data.count=20 caller=\"main.go:43 main.main\" host=\"myhost\"\n2018/08/17 20:17:45 The group's number increased tremendously! level=\"warn\" data.animal=\"walrus\" data.count=100 caller=\"main.go:47 main.main\" host=\"myhost\"\n2018/08/17 20:17:45 Tremendously sized cow enters the ocean. level=\"error\" data.animal=\"cow\" data.count=\"wait, what?\" caller=\"main.go:51 main.main\" host=\"myhost\"\n2018/08/17 20:17:45 The walrus are attacking! level=\"panic\" data.animal=\"walrus\" data.run=true caller=\"main.go:55 main.main\" host=\"myhost\"\n2018/08/17 20:17:45 That could have gone better... level=\"fatal\" data.dead=true data.winner=\"walrus\" caller=\"main.go:30 main.main.func1\" host=\"myhost\"\n```\n\n## Log Formatters\n\nBy default, `bdlm/log` uses a basic text format:\n```sh\ntime=\"2018-08-17T18:28:07.385-06:00\" level=\"debug\" msg=\"Oh, look, a bird...\" data.animal=\"bird\" data.count=1 caller=\"main.go:34 main.main\" host=\"myhost\"\ntime=\"2018-08-17T18:28:07.385-06:00\" level=\"info\" msg=\"A group of walrus emerges from the ocean\" data.animal=\"walrus\" data.count=20 caller=\"main.go:38 main.main\" host=\"myhost\"\ntime=\"2018-08-17T18:28:07.385-06:00\" level=\"warn\" msg=\"The group's number increased tremendously!\" data.animal=\"walrus\" data.count=100 caller=\"main.go:42 main.main\" host=\"myhost\"\ntime=\"2018-08-17T18:28:07.385-06:00\" level=\"error\" msg=\"Tremendously sized cow enters the ocean.\" data.animal=\"cow\" data.count=\"wait, what?\" caller=\"main.go:46 main.main\" host=\"myhost\"\ntime=\"2018-08-17T18:28:07.385-06:00\" level=\"panic\" msg=\"The walrus are attacking!\" data.animal=\"walrus\" data.run=true caller=\"main.go:50 main.main\" host=\"myhost\"\ntime=\"2018-08-17T18:28:07.385-06:00\" level=\"fatal\" msg=\"That could have gone better...\" data.dead=true data.winner=\"walrus\" caller=\"main.go:25 main.main.func1\" host=\"myhost\"\n```\n\nFor development, color-coded output formated for humans is automatically enabled when a `tty` terminal is detected (this can be disabled with `log.SetFormatter(\u0026log.TextFormatter{DisableTTY: true})`):\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/bdlm/log/wiki/assets/images/tty.png\" width=\"50%\"\u003e\n\u003c/p\u003e\n\nJSON formatting is also available with `log.SetFormatter(\u0026log.JSONFormatter{})` for easy parsing by logstash or similar:\n\n```json\n{\"caller\":\"main.go:36 main.main\",\"data\":{\"animal\":\"bird\",\"count\":1},\"host\":\"myhost\",\"level\":\"debug\",\"msg\":\"Oh, look, a bird...\",\"time\":\"2018-08-17T18:32:30.786-06:00\"}\n{\"caller\":\"main.go:40 main.main\",\"data\":{\"animal\":\"walrus\",\"count\":20},\"host\":\"myhost\",\"level\":\"info\",\"msg\":\"A group of walrus emerges from the ocean\",\"time\":\"2018-08-17T18:32:30.786-06:00\"}\n{\"caller\":\"main.go:44 main.main\",\"data\":{\"animal\":\"walrus\",\"count\":100},\"host\":\"myhost\",\"level\":\"warn\",\"msg\":\"The group's number increased tremendously!\",\"time\":\"2018-08-17T18:32:30.786-06:00\"}\n{\"caller\":\"main.go:48 main.main\",\"data\":{\"animal\":\"cow\",\"count\":\"wait, what?\"},\"host\":\"myhost\",\"level\":\"error\",\"msg\":\"Tremendously sized cow enters the ocean.\",\"time\":\"2018-08-17T18:32:30.786-06:00\"}\n{\"caller\":\"main.go:52 main.main\",\"data\":{\"animal\":\"walrus\",\"run\":true},\"host\":\"myhost\",\"level\":\"panic\",\"msg\":\"The walrus are attacking!\",\"time\":\"2018-08-17T18:32:30.786-06:00\"}\n{\"caller\":\"main.go:27 main.main.func1\",\"data\":{\"dead\":true,\"winner\":\"walrus\"},\"host\":\"myhost\",\"level\":\"fatal\",\"msg\":\"That could have gone better...\",\"time\":\"2018-08-17T18:32:30.787-06:00\"}\n```\n\nThe JSON formatter also makes adjustments by default when a `tty` terminal is detected and can be disabled similarly with `log.SetFormatter(\u0026log.JSONFormatter{DisableTTY: true})`:\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/bdlm/log/wiki/assets/images/tty-json.png\" width=\"50%\"\u003e\n\u003c/p\u003e\n\n## Backtrace data\n\nThe standard formatters also have a `trace` mode that is disabled by default. Rather than acting as an additional log level, it is instead a verbose mode that includes the full backtrace of the call that triggered the log write. To enable trace output, set `EnableTrace` to `true`.\n\nHere are the above examples with trace enabled:\n\n### TextFormat\n\nNon-TTY trace output:\n```go\nlog.SetFormatter(\u0026log.TextFormatter{\n    DisableTTY: true,\n    EnableTrace: true,\n})\n```\n\n```sh\ntime=\"2018-08-18T00:20:36.468-06:00\" level=\"debug\" msg=\"Oh, look, a bird...\" data.animal=\"bird\" data.count=1 host=\"myhost\" trace.0=\"main.go:38 main.main\"\ntime=\"2018-08-18T00:20:36.469-06:00\" level=\"info\" msg=\"A group of walrus emerges from the ocean\" data.animal=\"walrus\" data.count=20 host=\"myhost\" trace.0=\"main.go:42 main.main\"\ntime=\"2018-08-18T00:20:36.469-06:00\" level=\"warn\" msg=\"The group's number increased tremendously!\" data.animal=\"walrus\" data.count=100 host=\"myhost\" trace.0=\"main.go:46 main.main\"\ntime=\"2018-08-18T00:20:36.469-06:00\" level=\"error\" msg=\"Tremendously sized cow enters the ocean.\" data.animal=\"cow\" data.count=\"wait, what?\" host=\"myhost\" trace.0=\"main.go:50 main.main\"\ntime=\"2018-08-18T00:20:36.469-06:00\" level=\"panic\" msg=\"The walrus are attacking!\" data.animal=\"walrus\" data.run=true host=\"myhost\" trace.0=\"main.go:54 main.main\"\ntime=\"2018-08-18T00:20:36.469-06:00\" level=\"fatal\" msg=\"That could have gone better...\" data.dead=true data.winner=\"walrus\" host=\"myhost\" trace.0=\"main.go:30 main.main.func1\" trace.1=\"asm_amd64.s:573 runtime.call32\" trace.2=\"panic.go:502 runtime.gopanic\" trace.3=\"main.go:54 main.main\"\n```\n\nTTY trace output:\n```go\nlog.SetFormatter(\u0026log.TextFormatter{\n    EnableTrace: true,\n    ForceTTY: true,\n})\n```\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/bdlm/log/wiki/assets/images/tty-trace.png\" width=\"50%\"\u003e\n\u003c/p\u003e\n\n### JSONFormat\n\nTo enable trace output:\n```go\nlog.SetFormatter(\u0026log.JSONFormatter{\n    DisableTTY: true,\n    EnableTrace: true,\n})\n```\n\nNon-TTY trace output:\n```json\n{\"caller\":\"main.go:38 main.main\",\"data\":{\"animal\":\"bird\",\"count\":1},\"host\":\"myhost\",\"level\":\"debug\",\"msg\":\"Oh, look, a bird...\",\"time\":\"2018-08-18T00:22:16.057-06:00\",\"trace\":[\"main.go:38 main.main\"]}\n{\"caller\":\"main.go:42 main.main\",\"data\":{\"animal\":\"walrus\",\"count\":20},\"host\":\"myhost\",\"level\":\"info\",\"msg\":\"A group of walrus emerges from the ocean\",\"time\":\"2018-08-18T00:22:16.058-06:00\",\"trace\":[\"main.go:42 main.main\"]}\n{\"caller\":\"main.go:46 main.main\",\"data\":{\"animal\":\"walrus\",\"count\":100},\"host\":\"myhost\",\"level\":\"warn\",\"msg\":\"The group's number increased tremendously!\",\"time\":\"2018-08-18T00:22:16.058-06:00\",\"trace\":[\"main.go:46 main.main\"]}\n{\"caller\":\"main.go:50 main.main\",\"data\":{\"animal\":\"cow\",\"count\":\"wait, what?\"},\"host\":\"myhost\",\"level\":\"error\",\"msg\":\"Tremendously sized cow enters the ocean.\",\"time\":\"2018-08-18T00:22:16.058-06:00\",\"trace\":[\"main.go:50 main.main\"]}\n{\"caller\":\"main.go:54 main.main\",\"data\":{\"animal\":\"walrus\",\"run\":true},\"host\":\"myhost\",\"level\":\"panic\",\"msg\":\"The walrus are attacking!\",\"time\":\"2018-08-18T00:22:16.058-06:00\",\"trace\":[\"main.go:54 main.main\"]}\n{\"caller\":\"main.go:30 main.main.func1\",\"data\":{\"dead\":true,\"winner\":\"walrus\"},\"host\":\"myhost\",\"level\":\"fatal\",\"msg\":\"That could have gone better...\",\"time\":\"2018-08-18T00:22:16.058-06:00\",\"trace\":[\"main.go:30 main.main.func1\",\"asm_amd64.s:573 runtime.call32\",\"panic.go:502 runtime.gopanic\",\"main.go:54 main.main\"]}\n```\n\nTTY trace output:\n```go\nlog.SetFormatter(\u0026log.JSONFormatter{\n    EnableTrace: true,\n    ForceTTY: true,\n})\n```\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/bdlm/log/wiki/assets/images/tty-json-trace.png\" width=\"50%\"\u003e\n\u003c/p\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdlm%2Flog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbdlm%2Flog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdlm%2Flog/lists"}