An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 5.9% on proxy.golang.org
Top 0.9% dependent packages on proxy.golang.org
Top 1.1% dependent repos on proxy.golang.org

proxy.golang.org : github.com/powerman/structlog

Package structlog provides structured logger which looks friendly as plain text (more like handcrafted vertical-aligned log lines which doesn't feels like key/value pairs) but also really useful as JSON (each important value in log line became separate key/value pair). In short, with structlog you will have to write just this: and structlog will take care of the rest (output plain text or JSON, format plain text output to make it easy to read, include in output extra key/value pairs - both added by you before that call and calculated automatically like caller's details or stack trace). Well, not really. First you'll need to configure logger, to define what "easy to read" means in your case - but this has to be done just once, usually in main(), and then you'll get simple and powerful logging as promised above. It was designed to produce easy to read, vertically-aligned log lines while your project is small, and later, when your project will grow to use something like ELK Stack, switch by changing one option to produce easy to parse JSON log records. You can log key/value pairs without bothering about output format (plain text or JSON) and then fine-tune it plain text output by: Supported log levels: Err, Warn, Info and Debug. On import it calls stdlib's log.SetFlags(0) and by default will use stdlib's log.Print() to output log lines - this is to make sure structlog's output goes at same place as logging from other packages (which often use stdlib's log). For convenience you may have multiple loggers, and create new logger in such a way to inherit all settings from existing logger. These settings often include predefined key/value pairs to be automatically output in each logged line in addition to logger formatting setting. All loggers created using structlog.New() will inherit settings from logger in global variable structlog.DefaultLogger. So, usually you will configure structlog.DefaultLogger in your main(), to apply this configuration to each and every logger created in any other package of your application. Then you can do some extra setup on your logger (usually - just add some default key/value pair which should be output by each log call), and call log.New() method to get new logger which will inherit this extra setup. E.g. imagine HTTP middlewares: first will detect IP of connected client and store it in logger, second will check authentication and optionally add key/value pair with user ID - as result everything logged by your HTTP handler later using logger preconfigured by these middlewares will include remote IP and user ID in each log record - without needs to manually include it in each line where you log something. ★ Creating a new logger: ★ Passing logger inside context.Context: ★ Normal logging: ★ Logging useful with defer: ★ Delayed logging: ★ Configuring structlog.DefaultLogger in your main(): ★ Configuring current logger: ★ Handling log levels: ★ Passing this logger to 3rd-party packages which expects interface of stdlib's log.Logger: ★ Redirecting log output (useful to redirect to ioutil.Discard in tests):

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/powerman/structlog
Keywords: go , golang , golang-library , logging , logging-library
License: MIT
Latest release: 3 months ago
First release: over 7 years ago
Namespace: github.com/powerman
Dependent packages: 27
Dependent repositories: 27
Stars: 19 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 23 days ago

github.com/OpenRbt/lea-central-wash v0.0.16
LeaCentralWash | Central Server and management software for self-service car washing systems.
14 versions - Latest release: over 1 year ago - 2 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/DiaElectronics/online_kasse v0.0.0-20230619094835-0dd96cacc4b9
2 versions - Latest release: over 2 years ago
Top 8.2% on proxy.golang.org
gitlab.com/avi-paint/avi-api v0.0.0-20230108130827-5e165d67015f
2 versions - Latest release: almost 3 years ago - 0 stars on GitLab.com
Top 9.0% on proxy.golang.org
gitlab.com/serkurnikov/go-kit v1.0.0
1 version - Latest release: over 3 years ago - 0 stars on GitLab.com
Top 8.2% on proxy.golang.org
github.com/freonservice/freon v0.0.0-20220514204943-b26f218f8284
Service for manual and semi-automatiс translations
1 version - Latest release: over 3 years ago - 5 stars on GitHub
github.com/freonservice/libretranslate-sdk v0.0.0-20220107131201-21f7c07073b3
Libretranslate SDK designed for easy work with a translator LibreTranslate
1 version - Latest release: almost 4 years ago - 1 dependent package - 1 dependent repositories - 1 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/Lisss13/notifier v0.0.0-20211216143727-297521755dc5
1 version - Latest release: almost 4 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/powerman/structlog-usage-example v0.0.0-20210627195208-959e5f37b7a0
Usage example for Go package github.com/powerman/structlog
1 version - Latest release: over 4 years ago - 2 stars on GitHub
Top 7.4% on proxy.golang.org
git.luolix.top/powerman/go-service-example v1.4.0
10 versions - Latest release: over 4 years ago
Top 3.8% on proxy.golang.org
github.com/powerman/go-service-example v1.4.0
Example Go service using go-swagger and Clean Architecture
10 versions - Latest release: over 4 years ago - 4 dependent packages - 4 dependent repositories - 168 stars on GitHub
Top 9.2% on proxy.golang.org
github.phpd.cn/powerman/go-service-example v1.4.0
10 versions - Latest release: over 4 years ago
Top 9.2% on proxy.golang.org
github.imxd.top/powerman/go-service-example v1.4.0
10 versions - Latest release: over 4 years ago
Top 9.1% on proxy.golang.org
github.xiaoq7.com/powerman/go-service-example v1.4.0
10 versions - Latest release: over 4 years ago
Top 9.1% on proxy.golang.org
github.skymusic.top/powerman/go-service-example v1.4.0
10 versions - Latest release: over 4 years ago
Top 4.2% on proxy.golang.org
github.com/powerman/go-service-goswagger-clean-example v1.4.0
Example Go service using go-swagger and Clean Architecture
10 versions - Latest release: over 4 years ago - 6 dependent packages - 1 dependent repositories - 145 stars on GitHub
Top 9.1% on proxy.golang.org
github.skymusic.top/powerman/go-monolith-example v0.5.2
7 versions - Latest release: over 4 years ago
Top 8.2% on proxy.golang.org
github.com/powerman/go-monolith-example v0.5.2
Example Go monolith with embedded microservices and The Clean Architecture
7 versions - Latest release: over 4 years ago - 319 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/djarvur/allcups-itrally-2020-task v1.6.1
IT RALLY 2020 HighLoad Cup: The task
15 versions - Latest release: over 4 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/salamandra19/bitmex v0.0.0-20210120100016-cc6d8348e1d8
1 version - Latest release: almost 5 years ago - 0 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/g1ibby/eth-address-generator v0.1.0
Simple docker image for generate Ethereum address
1 version - Latest release: about 5 years ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/salamandra19/example-CICD-service v0.0.0-20190520002002-6e68268aa783
1 version - Latest release: over 6 years ago
Past Dependents
Include Past Dependents

Check this option to include packages that no longer depend on this package in their latest version but previously did.