Registry / logging / golang-glog

golang-glog

JSON →
library1.2.5gogounverified

Implements logging analogous to the Google-internal C++ INFO/ERROR/V setup, with severity levels and verbosity.

go get github.com/golang/glog
INSTALL
IMPORT
SIG · GOLANG-GLOG
G
golang-glog
logginggov1.2.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

glog
github.com/golang/glog

Logs an info message and flushes the log buffer.

package main import ( "github.com/golang/glog" ) func main() { glog.Info("This is an info message") glog.Flush() }
Debug
Known issues
gotchaglog requires calling glog.Flush() before exit to ensure all logs are written.
fix
Add defer glog.Flush() at the start of main or use a log package that flushes automatically.
affects: *
Upgrade
Version history
1.2.5latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
30
OpenAI (training)
1
Resources
golang-glog — go get golang-glog · libregistry