Documentation
¶
Index ¶
- Variables
- func IsTerminal(w io.Writer) bool
- func NewFileFromPath(ctx context.Context, engine storage.Engine, path string, opts anyio.WriterOpts) (zio.WriteCloser, error)
- func NewFileFromURI(ctx context.Context, engine storage.Engine, path *storage.URI, ...) (zio.WriteCloser, error)
- type Bytes
- type Dir
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoPath = errors.New("no _path field in zng record")
)
Functions ¶
func IsTerminal ¶
func NewFileFromPath ¶
func NewFileFromPath(ctx context.Context, engine storage.Engine, path string, opts anyio.WriterOpts) (zio.WriteCloser, error)
func NewFileFromURI ¶
Types ¶
type Dir ¶
type Dir struct {
// contains filtered or unexported fields
}
Dir implements the Writer interface and sends all log lines with the same descriptor to a file named <prefix><path>.<ext> in the directory indicated, where <prefix> and <ext> are specificied and <path> is determined by the _path field in the boom descriptor. Note that more than one descriptor can map to the same output file.
func NewDirWithEngine ¶
Click to show internal directories.
Click to hide internal directories.