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.11510709780046

Last synced: 1 day ago
JSON representation

Repository metadata:

Zero Allocation JSON Logger


Owner metadata:


GitHub Events

Total
Last Year

Committers metadata

Last synced: 5 days ago

Total Commits: 382
Total Committers: 166
Avg Commits per committer: 2.301
Development Distribution Score (DDS): 0.623

Commits in past year: 21
Committers in past year: 8
Avg Commits per committer in past year: 2.625
Development Distribution Score (DDS) in past year: 0.619

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
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
nichady 5****y 2
Pavel Griaznov g****t@g****m 2
CrazyMax 1****x 2
Mike Camp m****p@g****m 2
Hyuga 3****i 1
Igor Beliakov 4****d 1
Harish Kukreja h****a@g****m 1
and 136 more...

Issue and Pull Request metadata

Last synced: 5 days ago

Total issues: 186
Total pull requests: 199
Average time to close issues: about 1 year
Average time to close pull requests: 6 months
Total issue authors: 163
Total pull request authors: 105
Average comments per issue: 2.9
Average comments per pull request: 1.48
Merged pull request: 100
Bot issues: 0
Bot pull requests: 23

Past year issues: 15
Past year pull requests: 28
Past year average time to close issues: 5 months
Past year average time to close pull requests: 11 days
Past year issue authors: 15
Past year pull request authors: 12
Past year average comments per issue: 0.73
Past year average comments per pull request: 1.71
Past year merged pull request: 12
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)
  • wsw70 (3)
  • bentcoder (3)
  • pkieltyka (2)
  • willywartono14 (2)
  • shettyh (2)
  • conor-tread (2)
  • a641390597 (2)
  • GaikwadPratik (2)
  • sruehl (2)
  • crazy-pe (2)
  • FGasper (2)
  • BigBoulard (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 11 months ago)
  • Last Synced: 2026-02-04T22:46:29.038Z (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 11 months ago)
  • Last Synced: 2026-02-02T07:32:37.866Z (5 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 11 months ago)
  • Last Synced: 2026-02-02T07:32:35.698Z (5 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 11 months ago)
  • Last Synced: 2026-02-02T07:32:37.985Z (5 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 5 days ago)
  • Last Synced: 2026-02-02T22:49:30.122Z (5 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 11 months ago)
  • Last Synced: 2026-02-02T07:32:36.431Z (5 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 11 months ago)
  • Last Synced: 2026-02-02T07:32:36.448Z (5 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: (published 5 days ago)
  • Last Synced: 2026-02-02T07:32:34.265Z (5 days ago)
  • Versions: 0
  • 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

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: (published 5 days ago)
  • Last Synced: 2026-02-02T07:32:33.324Z (5 days ago)
  • Versions: 0
  • 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 11 months ago)
  • Last Synced: 2026-02-02T07:32:38.267Z (5 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
  • Status: removed
  • Documentation: https://pkg.go.dev/github.com/rusriver/zerolog#section-documentation
  • Licenses: MIT
  • Latest release: (published 4 days ago)
  • Last Synced: 2026-02-03T19:16:51.431Z (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%

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