Go Logging: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 8: Line 8:
=Standard Library <tt>log</tt> Package=
=Standard Library <tt>log</tt> Package=
{{Internal|Go_Package_log|<tt>log</tt>}}
{{Internal|Go_Package_log|<tt>log</tt>}}
=Standard Library <tt>slog</tt> Package=
{{Internal|Go_Package_slog|<tt>slog</tt>}}


=Open Source Logging Packages=
=Open Source Logging Packages=
* [[zap]]
* [[zap]]
* https://github.com/rs/zerolog a lightweight and performant logger for Go, designed for high throughput and minimal allocation. Suited for applications with strict performance requirements.
* glog https://github.com/golang/glog
* glog https://github.com/golang/glog
* [[sirupsen/logrus]]
=Idioms=
==Constant String Logging==
{{Internal|Sirupsen/logrus#Constant_String_Logging|logrus Constant String Logging}}


=Subjects=
=Subjects=
* [[Colors and Special Text Effects in Go Logs#Overview|Colors and Special Text Effects in Go Logs]]
* [[Colors and Special Text Effects in Go Logs#Overview|Colors and Special Text Effects in Go Logs]]

Latest revision as of 17:27, 4 September 2024

External

Internal

Overview

Standard Library log Package

log

Standard Library slog Package

slog

Open Source Logging Packages

Idioms

Constant String Logging

logrus Constant String Logging

Subjects