logr
Orange Forum
logr | Orange Forum | |
---|---|---|
9 | 3 | |
1,191 | 439 | |
1.3% | - | |
8.5 | 1.3 | |
8 days ago | about 2 months ago | |
Go | Go | |
Apache License 2.0 | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
logr
- What is the common log library which is industry standard that is used in server applications?
-
Created a small logging library in Go.
logr
-
Logging Library
How about using https://github.com/go-logr/logr You’ll be able to swap concrete implementation easily which will allow you to try out different libs on the market without refactoring all your logic
-
Have you replaced Sirupsen/logrus, and if so, with what?
I recommend https://github.com/go-logr/logr and you can choose implementation freely but zerolog/zap are optimized for speed.
-
Version 1.18 Refresh for Go Programmers
For logging, I use https://github.com/go-logr/logr with https://github.com/uber-go/zap
- Golog: an extensible logger for Go
-
Logger and Clean Architecture
I'd say it depends. If I write a package for others to use I usually don't include a logger at all and let the user decide what he wants to use. For any other project that needs logging I usually skip the interface to not have the struggle with finding one interface that fits all at least logrus and zap. We kinda agreed at the team to just use zap by now. One.thing i wanted to try tho is using sth like logr which provides an interface for the most commonly used loggers.
-
Go Masterpieces
After writing a lot of libraries I really appreciate logr. There are plenty of times when my library needs to output debugging info, but it's not practical to do things like parse flags for verbosity level. With thus I can just log at a higher V level and be done with it.
Orange Forum
-
Is there any conventionally accepted repo that is representative of well designed go code ?
Does orange forum count? https://github.com/s-gv/orangeforum
- Go Masterpieces
-
Your favorite (relatively unknown) code bases to learn from?
For Go, the orange forum source seems good (I am not a go dev).
What are some alternatives?
zerolog - Zero Allocation JSON Logger
Discourse - A platform for community discussion. Free, open, simple.
zap - Blazing fast, structured, leveled logging in Go.
phpBB - phpBB Development: phpBB is a popular open-source bulletin board written in PHP. This repository also contains the history of version 2.
life
OSSN - Open Source Social Network (OSSN) is a social networking software written in PHP. It allows you to make a social networking website and helps your members build social relationships, with people who share similar professional or personal interests. It is available in 17 international languages.
golog - Golog is a production ready logger which support tracing and other custom behaviours out of the box. Blazing fast and simple to use.
Isso - a Disqus alternative
logrus - Structured, pluggable logging for Go.
GNU social - GNU social is social communication software for both public and private communications.
log15 - Structured, composable logging for Go
nodeBB - Node.js based forum software built for the modern web