logutil

package
v3.0.0-...-66753ca Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package logutil implements utilities for recording log output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWriterToFile

func NewWriterToFile(maxSize int, path string) (io.Writer, error)

NewWriterToFile creates a Writer that writes out output to a file path up to a maximum limit maxSize.

func TeeOutput

func TeeOutput(writer io.Writer, maxSize int) (io.Writer, error)

TeeOutput tees out output to a file path specified by env var `UROOT_LOG_PATH` up to a max limit. Creates necessary directories for the specified logpath if they don't exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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