package jsonlog

import "github.com/dotcloud/docker/pkg/jsonlog"

Index

Functions

func WriteLog

func WriteLog(src io.Reader, dst io.Writer, format string) error

Types

type JSONLog

type JSONLog struct {
	Log     string    `json:"log,omitempty"`
	Stream  string    `json:"stream,omitempty"`
	Created time.Time `json:"time"`
}

func (*JSONLog) Format

func (jl *JSONLog) Format(format string) (string, error)

func (*JSONLog) MarshalJSON

func (mj *JSONLog) MarshalJSON() ([]byte, error)

func (*JSONLog) MarshalJSONBuf

func (mj *JSONLog) MarshalJSONBuf(buf *bytes.Buffer) error

func (*JSONLog) Reset

func (jl *JSONLog) Reset()

Source Files

jsonlog.go jsonlog_marshalling.go

Version
v1.6.0-rc5
Published
Apr 6, 2015
Platform
js/wasm
Imports
8 packages
Last checked
4 minutes ago

Tools for package owners.