logger

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2016 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOGLEVEL_ENV_VAR = "ECS_LOGLEVEL"
	LOGFILE_ENV_VAR  = "ECS_LOGFILE"

	DEFAULT_LOGLEVEL = "info"
)

Variables

This section is empty.

Functions

func SetLevel

func SetLevel(logLevel string)

SetLevel sets the log level for logging

Types

type OldLogger added in v1.1.0

type OldLogger interface {
	// New returns an OldLogger instance with the passed ctx plus existing ctx
	New(ctx ...interface{}) OldLogger

	// Log a message at the given level with context key/value pairs
	Debug(msg string, ctx ...interface{})
	Info(msg string, ctx ...interface{})
	Warn(msg string, ctx ...interface{})
	Error(msg string, ctx ...interface{})
	Crit(msg string, ctx ...interface{})
}

func ForModule

func ForModule(module string) OldLogger

ForModule returns an OldLogger instance. OldLogger is deprecated and kept for compatibility reasons. Prefer using Seelog directly.

type Shim added in v1.1.0

type Shim struct {
	// contains filtered or unexported fields
}

func (*Shim) Crit added in v1.1.0

func (s *Shim) Crit(msg string, ctx ...interface{})

func (*Shim) Debug added in v1.1.0

func (s *Shim) Debug(msg string, ctx ...interface{})

func (*Shim) Error added in v1.1.0

func (s *Shim) Error(msg string, ctx ...interface{})

func (*Shim) Info added in v1.1.0

func (s *Shim) Info(msg string, ctx ...interface{})

func (*Shim) New added in v1.1.0

func (s *Shim) New(ctx ...interface{}) OldLogger

func (*Shim) Warn added in v1.1.0

func (s *Shim) Warn(msg string, ctx ...interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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