Registry / logging / go-logging

go-logging

JSON →
library1.18.0gogounverified

Package logging contains a Cloud Logging client suitable for writing logs to Google Cloud Logging.

go get cloud.google.com/go/logging
INSTALL
IMPORT
SIG · GO-LOGGING
G
go-logging
logginggov1.18.0
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.

logging
cloud.google.com/go/logging

Creates a Cloud Logging client and logs a message.

package main import ( "context" "log" "cloud.google.com/go/logging" ) func main() { ctx := context.Background() client, err := logging.NewClient(ctx, "my-project") if err != nil { log.Fatal(err) } defer client.Close() logger := client.Logger("my-log") logger.Log(logging.Entry{Payload: "Hello, Cloud Logging!"}) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.18.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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