This example demonstrates basic usage of the LogTide Go SDK with all log levels.
# Set your API key
export LOGTIDE_API_KEY="lp_your_api_key_here"
# Run the example
go run main.go- Creating a LogTide client
- Using all log levels (Debug, Info, Warn, Error, Critical)
- Adding structured metadata to logs
- Manual flushing
- Graceful shutdown with
defer client.Close()
The example will send logs to LogTide and print progress to the console. All logs will be flushed before the program exits.