Skip to content

docs: add example programs for common usage patterns#19

Merged
taigrr merged 1 commit into
masterfrom
burrow/7-add-examples
Feb 23, 2026
Merged

docs: add example programs for common usage patterns#19
taigrr merged 1 commit into
masterfrom
burrow/7-add-examples

Conversation

@taigrr
Copy link
Copy Markdown
Owner

@taigrr taigrr commented Feb 20, 2026

Fixes #7

Changes

Adds four focused examples in examples/ directory:

  • basic — Drop-in logger with web UI, showing package-level functions and log level configuration
  • namespaces — Namespace-based logging by component (api, database, auth, cache) with the namespace API endpoint
  • client — Programmatic log client with namespace filtering, useful for building custom log processors or alerting
  • log-levels — Demonstrates all 8 log levels, formatted variants, and level filtering

Testing

  • All examples compile cleanly (go build ./examples/...)
  • go vet ./examples/... passes
  • Existing tests pass with go test ./... -race

Adds four focused examples in examples/ directory:
- basic: drop-in logger with web UI
- namespaces: namespace-based logging by component
- client: programmatic log client with filtering
- log-levels: all log levels and filtering

Fixes #7
@taigrr taigrr merged commit e725622 into master Feb 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create more example code lines

1 participant