https://github.com/rs/zerolog
golang json logging structured-logging zerolog
Score: 37.064523456004245
Last synced: about 8 hours ago
JSON representation
Repository metadata:
Zero Allocation JSON Logger
- Host: GitHub
- URL: https://github.com/rs/zerolog
- Owner: rs
- License: mit
- Created: 2017-05-12T05:24:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-04-18T11:14:43.000Z (5 months ago)
- Last Synced: 2025-09-05T06:39:22.244Z (1 day ago)
- Topics: golang, json, logging, structured-logging, zerolog
- Language: Go
- Homepage:
- Size: 1.31 MB
- Stars: 11,780
- Watchers: 72
- Forks: 603
- Open Issues: 144
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Owner metadata:
- Name: Olivier Poitrey
- Login: rs
- Email:
- Kind: user
- Description: Director of Engineering at Netflix Co-Founder & ex-CTO of Dailymotion Co-Founder of NextDNS
- Website:
- Location: Silicon Valley, California, USA
- Twitter:
- Company: Netflix
- Icon url: https://avatars.githubusercontent.com/u/68232?u=87a11a8b3ced882de7b8cd4dc304a7446b053564&v=4
- Repositories: 116
- Last Synced at: 2024-04-14T15:25:05.331Z
- Profile URL: https://github.com/rs
GitHub Events
Total
- Create event: 2
- Fork event: 53
- Gollum event: 14
- Issue comment event: 66
- Issues event: 25
- Pull request event: 30
- Pull request review comment event: 11
- Pull request review event: 6
- Push event: 10
- Watch event: 1147
- Total: 1364
Last Year
- Create event: 2
- Fork event: 53
- Gollum event: 14
- Issue comment event: 66
- Issues event: 25
- Pull request event: 30
- Pull request review comment event: 11
- Pull request review event: 6
- Push event: 10
- Watch event: 1147
- Total: 1364
Committers metadata
Last synced: 30 days ago
Total Commits: 369
Total Committers: 163
Avg Commits per committer: 2.264
Development Distribution Score (DDS): 0.61
Commits in past year: 12
Committers in past year: 8
Avg Commits per committer in past year: 1.5
Development Distribution Score (DDS) in past year: 0.583
Name | Commits | |
---|---|---|
Olivier Poitrey | r****s@r****t | 144 |
Mitar | m****t@t****m | 18 |
dependabot[bot] | 4****] | 11 |
Ravi Raju | r****r@e****g | 8 |
Dan Gillis | g****t@g****m | 5 |
hn8 | 1****8 | 4 |
Jason McVetta | j****a@g****m | 3 |
Eugene | r****r@b****t | 3 |
Giovanni Bajo | r****y@d****m | 2 |
Giuseppe | g****2 | 2 |
Ingmar Stein | I****n | 2 |
Karel Minarik | k****k@g****m | 2 |
Naveen | n****a@g****m | 2 |
Mike Camp | m****p@g****m | 2 |
Pavel Griaznov | g****t@g****m | 2 |
nichady | 5****y | 2 |
hazimj | 4****j | 2 |
crazy-pe | 1****e | 2 |
Garret Buell | g****l@g****m | 2 |
Dušan Kasan | d****n@k****k | 2 |
CrazyMax | 1****x | 2 |
adw1n | a****n | 2 |
Veselkov Konstantin | k****b@g****m | 2 |
Sergey | 8****o | 2 |
Rodrigo Coelho | r****o | 2 |
Nicola Murino | n****o@g****m | 2 |
Ilja Neumann | i****n@o****m | 1 |
Igor Beliakov | 4****d | 1 |
Hyuga | 3****i | 1 |
Harish Kukreja | h****a@g****m | 1 |
and 133 more... |
Issue and Pull Request metadata
Last synced: 6 days ago
Total issues: 187
Total pull requests: 157
Average time to close issues: 11 months
Average time to close pull requests: 6 months
Total issue authors: 165
Total pull request authors: 105
Average comments per issue: 2.99
Average comments per pull request: 1.49
Merged pull request: 80
Bot issues: 0
Bot pull requests: 17
Past year issues: 20
Past year pull requests: 30
Past year average time to close issues: 30 days
Past year average time to close pull requests: 1 day
Past year issue authors: 20
Past year pull request authors: 19
Past year average comments per issue: 0.75
Past year average comments per pull request: 1.07
Past year merged pull request: 6
Past year bot issues: 0
Past year bot pull requests: 2
Top Issue Authors
- mitar (5)
- wsw70 (3)
- bentcoder (3)
- freak12techno (3)
- BigBoulard (2)
- inliquid (2)
- ghost (2)
- sruehl (2)
- conor-tread (2)
- willywartono14 (2)
- GaikwadPratik (2)
- sishui (2)
- shettyh (2)
- pkieltyka (2)
- a641390597 (2)
Top Pull Request Authors
- dependabot[bot] (20)
- mitar (14)
- gmbuell (6)
- freak12techno (4)
- madkins23 (4)
- Hyuga-Tsukui (4)
- SaravananSai07 (4)
- crazy-pe (3)
- GRbit (3)
- kylev (2)
- coderigo (2)
- jahankhan (2)
- cuonglm (2)
- kpechenenko (2)
- flejz (2)
Top Issue Labels
- enhancement (1)
Top Pull Request Labels
- dependencies (20)
- github_actions (13)
- go (7)
Package metadata
- Total packages: 11
- Total downloads: unknown
- Total docker downloads: 6,431,394,785
- Total dependent packages: 14,089 (may contain duplicates)
- Total dependent repositories: 32,225 (may contain duplicates)
- Total versions: 312
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 6 months ago)
- Last Synced: 2025-09-05T06:41:09.533Z (1 day 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 6 months ago)
- Last Synced: 2025-09-05T06:41:09.400Z (1 day 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 6 months ago)
- Last Synced: 2025-09-05T06:41:09.526Z (1 day 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 7 days ago)
- Last Synced: 2025-08-30T03:37:11.619Z (7 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 6 months ago)
- Last Synced: 2025-09-05T06:41:09.564Z (1 day 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 6 months ago)
- Last Synced: 2025-09-05T06:40:33.875Z (1 day 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/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 3 days ago)
- Last Synced: 2025-09-03T05:36:15.897Z (3 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
- Homepage: https://github.com/rs/zerolog
- Documentation: https://pkg.go.dev/github.com/rs/zerolog/internal/json#section-documentation
- Licenses: MIT
- Latest release: (published 15 days ago)
- Last Synced: 2025-08-23T00:06:53.778Z (15 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/pkgerrors
- Homepage: https://github.com/rs/zerolog
- Documentation: https://pkg.go.dev/github.com/rs/zerolog/pkgerrors#section-documentation
- Licenses: MIT
- Latest release: (published 3 days ago)
- Last Synced: 2025-09-03T05:36:06.066Z (3 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 6 months ago)
- Last Synced: 2025-09-05T06:41:09.845Z (1 day 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 16 days ago)
- Last Synced: 2025-08-25T01:05:32.477Z (13 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
- actions/cache v3 composite
- actions/checkout v3 composite
- actions/setup-go v3 composite
- golang.org/x/tools v0.1.8
- 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
- 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
- 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