logwriter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package logwriter wraps a io.Writer for dingo-hunter logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {
	io.Writer

	LogFile       string
	EnableLogging bool
	EnableColour  bool
	Cleanup       func()
}

Writer is a log writer and its configurations.

func New

func New(w io.Writer, enableLogging, enableColour bool) *Writer

New creates a new log writer.

func NewFile

func NewFile(logfile string, enableLogging, enableColour bool) *Writer

New creates a new file writer.

func (*Writer) Create

func (w *Writer) Create() error

Create initialises a new writer.

Jump to

Keyboard shortcuts

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