log

package
v0.0.0-...-3d30972 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 7 Imported by: 8

Documentation

Index

Constants

View Source
const (
	// LogFilePattern string format pattern for the log file
	LogFilePattern = "%s/resource-%s.log"
)

Variables

This section is empty.

Functions

func Close

func Close()

Close the *os.File connection for the logger

func StdErr

func StdErr(msg string, v interface{})

StdErr outputs a message & the string form of a data structure (`v`) to the stderr stream

this is helpful, as Concourse consumes the `stdout` stream for metadata

func Write

func Write(msg string)

Write writes a message to a log file in `/tmp`

func WriteStdin

func WriteStdin() []byte

WriteStdin will write the contents of stdin to the log, then return the contents if env var `LOG_DEBUG` != ""

Types

This section is empty.

Jump to

Keyboard shortcuts

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