package logger
import "github.com/dotcloud/docker/daemon/logger"
Index ¶
- type Copier
- func NewCopier(cid string, srcs map[string]io.Reader, dst Logger) (*Copier, error)
- func (c *Copier) Run()
- func (c *Copier) Wait()
- type Logger
- type Message
Types ¶
type Copier ¶
type Copier struct {
// contains filtered or unexported fields
}
Copier can copy logs from specified sources to Logger and attach ContainerID and Timestamp. Writes are concurrent, so you need implement some sync in your logger
func NewCopier ¶
NewCopier creates new Copier
func (*Copier) Run ¶
func (c *Copier) Run()
Run starts logs copying
func (*Copier) Wait ¶
func (c *Copier) Wait()
Wait waits until all copying is done
type Logger ¶
Logger is interface for docker logging drivers
type Message ¶
Message is datastructure that represents record from some container
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
daemon/logger/jsonfilelog | |
daemon/logger/syslog |
- Version
- v1.6.0-rc6
- Published
- Apr 13, 2015
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 59 seconds ago –
Tools for package owners.