Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Basic Example

This example demonstrates basic usage of the LogTide Go SDK with all log levels.

Running the Example

# Set your API key
export LOGTIDE_API_KEY="lp_your_api_key_here"

# Run the example
go run main.go

What it Demonstrates

  • 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()

Expected Output

The example will send logs to LogTide and print progress to the console. All logs will be flushed before the program exits.