file

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package file prints log lines to a file.

Index

Constants

View Source
const (
	Name = "file"
)

Variables

This section is empty.

Functions

func New

func New(tree config.Tree) (log.Printer, error)

Types

type Config

type Config struct {
	Path        string `toml:"path"`
	Flag        int    `toml:"flag"`
	Mode        uint32 `toml:"mode"`
	FlushPeriod int    `toml:"flush_period"`
}

Config defines the filer printer config

type Logger

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

func (*Logger) Close

func (l *Logger) Close() error

func (*Logger) Print

func (l *Logger) Print(ctx *log.Context, s string) error

Jump to

Keyboard shortcuts

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