An open API service for producing an overview of a list of open source projects.

https://github.com/rs/zerolog

golang json logging structured-logging zerolog

Score: 37.130568119769215

Last synced: about 22 hours ago
JSON representation

Repository metadata:

Zero Allocation JSON Logger


Owner metadata:


GitHub Events

Total
Last Year

Committers metadata

Last synced: 4 days ago

Total Commits: 384
Total Committers: 167
Avg Commits per committer: 2.299
Development Distribution Score (DDS): 0.625

Commits in past year: 16
Committers in past year: 6
Avg Commits per committer in past year: 2.667
Development Distribution Score (DDS) in past year: 0.5

Name Email Commits
Olivier Poitrey r****s@r****t 144
Mitar m****t@t****m 18
dependabot[bot] 4****] 14
Marc Brooks I****e@g****m 8
Ravi Raju r****r@e****g 8
Dan Gillis g****t@g****m 5
hn8 1****8 4
Eugene r****r@b****t 3
Jason McVetta j****a@g****m 3
Giuseppe g****2 2
Giovanni Bajo r****y@d****m 2
Garret Buell g****l@g****m 2
Dušan Kasan d****n@k****k 2
Rodrigo Coelho r****o 2
Sergey 8****o 2
Varun Chawla 3****y 2
Veselkov Konstantin k****b@g****m 2
adw1n a****n 2
crazy-pe 1****e 2
hazimj 4****j 2
Ingmar Stein I****n 2
Karel Minarik k****k@g****m 2
Naveen n****a@g****m 2
Nicola Murino n****o@g****m 2
Mike Camp m****p@g****m 2
nichady 5****y 2
Pavel Griaznov g****t@g****m 2
CrazyMax 1****x 2
Ilja Neumann i****n@o****m 1
Igor Beliakov 4****d 1
and 137 more...

Issue and Pull Request metadata

Last synced: 3 days ago

Total issues: 187
Total pull requests: 201
Average time to close issues: about 1 year
Average time to close pull requests: 6 months
Total issue authors: 164
Total pull request authors: 106
Average comments per issue: 2.89
Average comments per pull request: 1.53
Merged pull request: 101
Bot issues: 0
Bot pull requests: 23

Past year issues: 12
Past year pull requests: 20
Past year average time to close issues: about 2 months
Past year average time to close pull requests: 21 days
Past year issue authors: 12
Past year pull request authors: 8
Past year average comments per issue: 0.58
Past year average comments per pull request: 1.9
Past year merged pull request: 10
Past year bot issues: 0
Past year bot pull requests: 3

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/rs/zerolog

Top Issue Authors

  • mitar (5)
  • freak12techno (3)
  • bentcoder (3)
  • wsw70 (3)
  • pkieltyka (2)
  • willywartono14 (2)
  • conor-tread (2)
  • shettyh (2)
  • GaikwadPratik (2)
  • a641390597 (2)
  • sruehl (2)
  • ghost (2)
  • BigBoulard (2)
  • inliquid (2)
  • sishui (2)

Top Pull Request Authors

  • dependabot[bot] (23)
  • mitar (14)
  • IDisposable (9)
  • gmbuell (6)
  • madkins23 (4)
  • Hyuga-Tsukui (4)
  • freak12techno (4)
  • SaravananSai07 (4)
  • crazy-pe (3)
  • GRbit (3)
  • sted (2)
  • ndk (2)
  • marshallflax (2)
  • shvydky (2)
  • TommyCpp (2)

Top Issue Labels

  • enhancement (1)

Top Pull Request Labels

  • dependencies (23)
  • github_actions (15)
  • go (8)

Package metadata

proxy.golang.org: github.com/rs/zerolog

Package zerolog provides a lightweight logging library dedicated to JSON logging. A global Logger can be use for simple logging: NOTE: To import the global logger, import the "log" subpackage "github.com/rs/zerolog/log". Fields can be added to log messages: Create logger instance to manage different outputs: Sub-loggers let you chain loggers with additional context: Level logging Customize automatic field names: Log with no level and message: Add contextual fields to global Logger: Sample logs: Log with contextual hooks: Field duplication: There is no fields deduplication out-of-the-box. Using the same key multiple times creates new key in final JSON each time. In this case, many consumers will take the last value, but this is not guaranteed; check yours if in doubt. Concurrency safety: Be careful when calling UpdateContext. It is not concurrency safe. Use the With method to create a child logger:

  • Homepage: https://github.com/rs/zerolog
  • Documentation: https://pkg.go.dev/github.com/rs/zerolog#section-documentation
  • Licenses: MIT
  • Latest release: v1.34.0 (published about 1 year ago)
  • Last Synced: 2026-03-27T00:32:16.201Z (3 days ago)
  • Versions: 52
  • Dependent Packages: 14,089
  • Dependent Repositories: 32,224
  • Docker Downloads: 6,431,394,785
  • Rankings:
    • Dependent packages count: 0.013%
    • Dependent repos count: 0.032%
    • Docker downloads count: 0.044%
    • Average: 0.42%
    • Stargazers count: 0.696%
    • Forks count: 1.317%
proxy.golang.org: github.com/rs/zeroLog

Package zerolog provides a lightweight logging library dedicated to JSON logging. A global Logger can be use for simple logging: NOTE: To import the global logger, import the "log" subpackage "github.com/rs/zerolog/log". Fields can be added to log messages: Create logger instance to manage different outputs: Sub-loggers let you chain loggers with additional context: Level logging Customize automatic field names: Log with no level and message: Add contextual fields to global Logger: Sample logs: Log with contextual hooks: There is no fields deduplication out-of-the-box. Using the same key multiple times creates new key in final JSON each time. However, it’s not a big deal though as JSON accepts dup keys, the last one prevails.

  • Homepage: https://github.com/rs/zeroLog
  • Documentation: https://pkg.go.dev/github.com/rs/zeroLog#section-documentation
  • Licenses: MIT
  • Latest release: v1.34.0 (published about 1 year ago)
  • Last Synced: 2026-03-26T10:04:14.852Z (4 days ago)
  • Versions: 52
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Rankings:
    • Stargazers count: 0.738%
    • Forks count: 1.35%
    • Average: 3.834%
    • Dependent repos count: 4.794%
    • Dependent packages count: 8.453%
proxy.golang.org: github.com/RS/zerolog

Package zerolog provides a lightweight logging library dedicated to JSON logging. A global Logger can be use for simple logging: NOTE: To import the global logger, import the "log" subpackage "github.com/rs/zerolog/log". Fields can be added to log messages: Create logger instance to manage different outputs: Sub-loggers let you chain loggers with additional context: Level logging Customize automatic field names: Log with no level and message: Add contextual fields to global Logger: Sample logs: Log with contextual hooks: There is no fields deduplication out-of-the-box. Using the same key multiple times creates new key in final JSON each time. However, it’s not a big deal though as JSON accepts dup keys, the last one prevails.

  • Homepage: https://github.com/RS/zerolog
  • Documentation: https://pkg.go.dev/github.com/RS/zerolog#section-documentation
  • Licenses: MIT
  • Latest release: v1.34.0 (published about 1 year ago)
  • Last Synced: 2026-03-26T10:03:45.491Z (4 days ago)
  • Versions: 52
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Stargazers count: 0.513%
    • Forks count: 0.878%
    • Average: 4.434%
    • Dependent packages count: 6.999%
    • Dependent repos count: 9.346%
proxy.golang.org: github.com/rs/zerolog/cmd/lint

  • Homepage: https://github.com/rs/zerolog
  • Documentation: https://pkg.go.dev/github.com/rs/zerolog/cmd/lint#section-documentation
  • Licenses: MIT
  • Latest release: (published 4 days ago)
  • Last Synced: 2026-03-26T10:03:08.413Z (4 days ago)
  • Versions: 0
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Stargazers count: 0.513%
    • Forks count: 0.878%
    • Average: 4.434%
    • Dependent packages count: 6.999%
    • Dependent repos count: 9.346%
proxy.golang.org: github.com/rs/zeroloG

Package zerolog provides a lightweight logging library dedicated to JSON logging. A global Logger can be use for simple logging: NOTE: To import the global logger, import the "log" subpackage "github.com/rs/zerolog/log". Fields can be added to log messages: Create logger instance to manage different outputs: Sub-loggers let you chain loggers with additional context: Level logging Customize automatic field names: Log with no level and message: Add contextual fields to global Logger: Sample logs: Log with contextual hooks: There is no fields deduplication out-of-the-box. Using the same key multiple times creates new key in final JSON each time. However, it’s not a big deal though as JSON accepts dup keys, the last one prevails.

  • Homepage: https://github.com/rs/zeroloG
  • Documentation: https://pkg.go.dev/github.com/rs/zeroloG#section-documentation
  • Licenses: MIT
  • Latest release: v1.34.0 (published about 1 year ago)
  • Last Synced: 2026-03-26T10:02:15.662Z (4 days ago)
  • Versions: 52
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Stargazers count: 0.513%
    • Forks count: 0.878%
    • Average: 4.434%
    • Dependent packages count: 6.999%
    • Dependent repos count: 9.346%
proxy.golang.org: github.com/rs/ZeroLog

Package zerolog provides a lightweight logging library dedicated to JSON logging. A global Logger can be use for simple logging: NOTE: To import the global logger, import the "log" subpackage "github.com/rs/zerolog/log". Fields can be added to log messages: Create logger instance to manage different outputs: Sub-loggers let you chain loggers with additional context: Level logging Customize automatic field names: Log with no level and message: Add contextual fields to global Logger: Sample logs: Log with contextual hooks: There is no fields deduplication out-of-the-box. Using the same key multiple times creates new key in final JSON each time. However, it’s not a big deal though as JSON accepts dup keys, the last one prevails.

  • Homepage: https://github.com/rs/ZeroLog
  • Documentation: https://pkg.go.dev/github.com/rs/ZeroLog#section-documentation
  • Licenses: MIT
  • Latest release: v1.34.0 (published about 1 year ago)
  • Last Synced: 2026-03-27T09:23:04.432Z (3 days ago)
  • Versions: 52
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 5.063%
    • Average: 5.233%
    • Dependent repos count: 5.403%
proxy.golang.org: github.com/rs/Zerolog

Package zerolog provides a lightweight logging library dedicated to JSON logging. A global Logger can be use for simple logging: NOTE: To import the global logger, import the "log" subpackage "github.com/rs/zerolog/log". Fields can be added to log messages: Create logger instance to manage different outputs: Sub-loggers let you chain loggers with additional context: Level logging Customize automatic field names: Log with no level and message: Add contextual fields to global Logger: Sample logs: Log with contextual hooks: There is no fields deduplication out-of-the-box. Using the same key multiple times creates new key in final JSON each time. However, it’s not a big deal though as JSON accepts dup keys, the last one prevails.

  • Homepage: https://github.com/rs/Zerolog
  • Documentation: https://pkg.go.dev/github.com/rs/Zerolog#section-documentation
  • Licenses: MIT
  • Latest release: v1.34.0 (published about 1 year ago)
  • Last Synced: 2026-03-26T10:04:46.247Z (4 days ago)
  • Versions: 52
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Stargazers count: 0.681%
    • Forks count: 1.26%
    • Average: 5.381%
    • Dependent packages count: 8.883%
    • Dependent repos count: 10.7%
proxy.golang.org: github.com/rs/zerolog/pkgerrors

  • Homepage: https://github.com/rs/zerolog
  • Documentation: https://pkg.go.dev/github.com/rs/zerolog/pkgerrors#section-documentation
  • Licenses: MIT
  • Latest release: v1.34.0 (published about 1 month ago)
  • Last Synced: 2026-03-27T09:23:02.258Z (3 days ago)
  • Versions: 30
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 6.151%
    • Average: 6.357%
    • Dependent repos count: 6.563%
proxy.golang.org: github.com/rs/zerolog/log

Package log provides a global logger for zerolog. This example uses command-line flags to demonstrate various outputs depending on the chosen log level.

  • Homepage: https://github.com/rs/zerolog
  • Documentation: https://pkg.go.dev/github.com/rs/zerolog/log#section-documentation
  • Licenses: MIT
  • Latest release: v1.34.0 (published about 1 month ago)
  • Last Synced: 2026-03-26T10:04:56.796Z (4 days ago)
  • Versions: 50
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 6.151%
    • Average: 6.357%
    • Dependent repos count: 6.563%
proxy.golang.org: github.com/rs/zerolog/internal/json

  • Homepage: https://github.com/rs/zerolog
  • Documentation: https://pkg.go.dev/github.com/rs/zerolog/internal/json#section-documentation
  • Licenses: MIT
  • Latest release: v1.34.0 (published about 1 month ago)
  • Last Synced: 2026-03-27T09:23:02.346Z (3 days ago)
  • Versions: 48
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 6.151%
    • Average: 6.357%
    • Dependent repos count: 6.563%
proxy.golang.org: github.com/RS/ZEROLOG

Package zerolog provides a lightweight logging library dedicated to JSON logging. A global Logger can be use for simple logging: NOTE: To import the global logger, import the "log" subpackage "github.com/rs/zerolog/log". Fields can be added to log messages: Create logger instance to manage different outputs: Sub-loggers let you chain loggers with additional context: Level logging Customize automatic field names: Log with no level and message: Add contextual fields to global Logger: Sample logs: Log with contextual hooks: There is no fields deduplication out-of-the-box. Using the same key multiple times creates new key in final JSON each time. However, it’s not a big deal though as JSON accepts dup keys, the last one prevails.

  • Homepage: https://github.com/RS/ZEROLOG
  • Documentation: https://pkg.go.dev/github.com/RS/ZEROLOG#section-documentation
  • Licenses: MIT
  • Latest release: v1.34.0 (published about 1 year ago)
  • Last Synced: 2026-03-26T10:04:44.157Z (4 days ago)
  • Versions: 52
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 6.292%
    • Average: 6.505%
    • Dependent repos count: 6.717%
proxy.golang.org: github.com/rusriver/zerolog

Package zerolog provides a lightweight logging library dedicated to JSON logging. A global Logger can be use for simple logging: NOTE: To import the global logger, import the "log" subpackage "github.com/rs/zerolog/log". Fields can be added to log messages: Create logger instance to manage different outputs: Sub-loggers let you chain loggers with additional context: Level logging Customize automatic field names: Log with no level and message: Add contextual fields to global Logger: Sample logs: Log with contextual hooks: Field duplication: There is no fields deduplication out-of-the-box. Using the same key multiple times creates new key in final JSON each time. In this case, many consumers will take the last value, but this is not guaranteed; check yours if in doubt. Concurrency safety: Be careful when calling UpdateContext. It is not concurrency safe. Use the With method to create a child logger:

  • Homepage: https://github.com/rs/zerolog
  • Documentation: https://pkg.go.dev/github.com/rusriver/zerolog#section-documentation
  • Licenses: MIT
  • Latest release: (published 11 days ago)
  • Last Synced: 2026-03-26T10:03:39.663Z (4 days ago)
  • Versions: 0
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 7.044%
    • Average: 7.494%
    • Dependent repos count: 7.943%
guix: go-github-com-rs-zerolog

Zero Allocation JSON Logger

ubuntu-23.04: golang-github-rs-zerolog

  • Homepage: https://github.com/rs/zerolog
  • Licenses:
  • Latest release: 1.26.1-2 (published about 2 months ago)
  • Last Synced: 2026-03-11T20:19:11.524Z (19 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-24.10: golang-github-rs-zerolog

  • Homepage: https://github.com/rs/zerolog
  • Licenses:
  • Latest release: 1.29.1-1 (published about 2 months ago)
  • Last Synced: 2026-03-08T16:51:46.845Z (22 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-24.04: golang-github-rs-zerolog

  • Homepage: https://github.com/rs/zerolog
  • Licenses:
  • Latest release: 1.29.1-1 (published about 2 months ago)
  • Last Synced: 2026-03-05T18:51:49.831Z (25 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
debian-12: golang-github-rs-zerolog

  • Homepage: https://github.com/rs/zerolog
  • Documentation: https://packages.debian.org/bookworm/golang-github-rs-zerolog
  • Licenses:
  • Latest release: 1.26.1-2 (published about 2 months ago)
  • Last Synced: 2026-03-12T22:08:00.778Z (17 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
debian-11: golang-github-rs-zerolog

  • Homepage: https://github.com/rs/zerolog
  • Documentation: https://packages.debian.org/bullseye/golang-github-rs-zerolog
  • Licenses:
  • Latest release: 1.20.0-1 (published about 2 months ago)
  • Last Synced: 2026-03-13T16:29:56.698Z (17 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-22.04: golang-github-rs-zerolog

  • Homepage: https://github.com/rs/zerolog
  • Licenses:
  • Latest release: 1.26.1-1 (published about 1 month ago)
  • Last Synced: 2026-03-13T18:42:20.989Z (17 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-23.10: golang-github-rs-zerolog

  • Homepage: https://github.com/rs/zerolog
  • Licenses:
  • Latest release: 1.29.1-1 (published about 2 months ago)
  • Last Synced: 2026-03-10T05:03:31.783Z (20 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
debian-13: golang-github-rs-zerolog

  • Homepage: https://github.com/rs/zerolog
  • Documentation: https://packages.debian.org/trixie/golang-github-rs-zerolog
  • Licenses:
  • Latest release: 1.29.1-1 (published about 2 months ago)
  • Last Synced: 2026-03-13T11:09:42.606Z (17 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%

Dependencies

.github/workflows/test.yml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • actions/setup-go v3 composite
cmd/lint/go.mod go
  • golang.org/x/tools v0.1.8
cmd/lint/go.sum go
  • github.com/yuin/goldmark v1.4.1
  • golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
  • golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550
  • golang.org/x/mod v0.5.1
  • golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3
  • golang.org/x/net v0.0.0-20190620200207-3b0461eec859
  • golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f
  • golang.org/x/sync v0.0.0-20190423024810-112230192c58
  • golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
  • golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
  • golang.org/x/sys v0.0.0-20190412213103-97732733099d
  • golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
  • golang.org/x/sys v0.0.0-20210423082822-04245dca01da
  • golang.org/x/sys v0.0.0-20211019181941-9d821ace8654
  • golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
  • golang.org/x/text v0.3.0
  • golang.org/x/text v0.3.6
  • golang.org/x/text v0.3.7
  • golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
  • golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e
  • golang.org/x/tools v0.1.8
  • golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
  • golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898
  • golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
go.mod go
  • github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534
  • github.com/mattn/go-colorable v0.1.12
  • github.com/pkg/errors v0.9.1
  • github.com/rs/xid v1.4.0
go.sum go
  • github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534
  • github.com/godbus/dbus/v5 v5.0.4
  • github.com/mattn/go-colorable v0.1.12
  • github.com/mattn/go-isatty v0.0.14
  • github.com/pkg/errors v0.9.1
  • github.com/rs/xid v1.4.0
  • golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c
  • golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6