log

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2016 License: MIT Imports: 4 Imported by: 41

Documentation

Overview

Package log provides a simple file and console log

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Filter string
	// contains filtered or unexported fields
}

Logger conforms with the server.Logger interface

func New

func New(path string, production bool) *Logger

New creates a new Logger which writes to a file and to stderr

func (*Logger) Printf

func (l *Logger) Printf(format string, args ...interface{})

Printf logs events selectively given our filter

Jump to

Keyboard shortcuts

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