go-timber

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2020 License: MIT

README

go-timber

GoDoc Release Build Status Go Report Card Code Climate BCH compliance

Unofficial golang library for Timber.io.

Quick Usage

import (
	"github.com/evalphobia/go-timber/timber"
)

func someFunction() {
	conf := timber.Config{
		APIKey:       "",
		SourceID:     "",
		Environment:  "production",
		MinimumLevel: timber.LogLevelInfo,
		Sync:         false,
		Debug:        true,
	}

	cli := timber.New(conf)

	cli.Debug("logging...")
	cli.Trace("logging...")
	cli.Info("logging...")
	cli.Warn("logging...")
	cli.Err("logging...")
	cli.Fatal("logging...")
}

Environment variables

Name Description
TIMBER_API_KEY API Key of timber.
TIMBER_SOURCE_ID Source ID of timber.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL