log

package
v0.0.0-...-4f40efb Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

logging for the purposes of analysis later on.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTest

func NewTest(a aws.Auth, bucket string) *test

Types

type LogRecord

type LogRecord struct {
	Run      string
	Id       string
	Time     time.Time
	Messages []Message
}

type Logger

type Logger interface {

	// async logging
	Add(interface{})

	// returns only when log is committed to permanent storage
	AddSync(interface{}) error

	Flush()
}

func NewJSONLogger

func NewJSONLogger(runID string, ss3 s3.Interface, bucket string, dir string) Logger

type Message

type Message struct {
	Time    time.Time
	Id      string
	Payload interface{}
}

type Message2

type Message2 struct {
	Message
	Type  string
	Reply chan error
}

Jump to

Keyboard shortcuts

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