LAGRA is a Go logging library designed to be easy, efficient, fast, and lightweight with zero allocations. It offers advanced logging customization options and serves as an alternative to Zerolog and Logrus.
LAGRA is 8 times faster than "fmt" and 2.28 times faster than "Zerolog". Test done via "testing", click here. Test carried out on 17/10/2023.
To get started with LAGRA, you can add it to your Go project using go get
:
go get -u github.com/simplyYan/LAGRA
To read the documentation, go to https://github.com/simplyYan/LAGRA/wiki/Documentation
LAGRA offers several features and advantages that make it a solid choice for your Go logging needs:
-
Easy to Use: LAGRA is designed for simplicity. You can start logging with just a few lines of code.
-
Efficiency and Zero Allocation: LAGRA is resource-efficient and minimizes memory allocations, ensuring high performance.
-
Log Levels: It supports different log levels (debug, info, warning, error) so you can control the granularity of recorded messages.
-
Customization: You can customize the log message output format to suit different contexts and project requirements.
-
Log Destinations: In addition to printing logs to the console, LAGRA allows you to direct logs to different destinations, such as files, network outputs, or even third-party systems.
-
Simple Configuration: LAGRA’s configuration is straightforward and human-readable, making log customization easy.
-
Extensive Documentation: The library comes with comprehensive documentation and usage examples to help you make the most of its features.
-
Open Source License: LAGRA is distributed under the MIT license, allowing you to use it in both commercial and open-source projects without restrictions.
-
Active Community: The Go developer community is active and ready to provide support and contributions to LAGRA.
LAGRA is a solid choice for those seeking an efficient, user-friendly, and highly customizable logging solution in Go.
By Wesley Yan Soares Brehmer, CEO/Founder of SwankyNoob