stdlog

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StdCfg c4hgol.Configurer = &stdCfg{
	origWr:  os.Stderr,
	enabled: true,
}

Functions

This section is empty.

Types

type Config

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

func NewConfig

func NewConfig(logger *log.Logger, original io.Writer, reuse *Config) *Config

func (*Config) Enable

func (c *Config) Enable(setEnabled bool)

func (*Config) Enabled

func (c *Config) Enabled() bool

func (*Config) Level

func (c *Config) Level() c4hgol.Level

func (*Config) Name

func (c *Config) Name() string

func (*Config) Output

func (c *Config) Output() io.Writer

func (*Config) SetLevel

func (c *Config) SetLevel(l c4hgol.Level)

func (*Config) SetOutput

func (c *Config) SetOutput(wr io.Writer)

Jump to

Keyboard shortcuts

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