logfile

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2016 License: MIT Imports: 6 Imported by: 9

Documentation

Overview

Package logfile provides convenience functions for logging to a file with an ISO 8601 datetime prefix. Capabilities include Reopen to reopen a file after log rotation, and graceful handling of fatal logging errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func (*Logger) Close

func (l *Logger) Close() error

func (*Logger) HasFatalError

func (l *Logger) HasFatalError() bool

func (*Logger) Open

func (l *Logger) Open(file string, debug bool) error

func (*Logger) Reopen

func (l *Logger) Reopen() error

func (*Logger) Write

func (l *Logger) Write(args ...interface{}) error

func (*Logger) WriteDebug

func (l *Logger) WriteDebug(args ...interface{}) error

Jump to

Keyboard shortcuts

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