utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureLogger

func ConfigureLogger(lvl string)

func ManageProc

func ManageProc(cmd *overseer.Cmd, over *overseer.Overseer, w io.Writer) error

func MonitorState

func MonitorState(over *overseer.Overseer, fn func(state *overseer.ProcessJSON) string)

Types

type Logger

type Logger struct {
	*logrus.Logger
}

Logger Compatability with overseer.Logger Trick to avoid breaking the interface

func Log

func Log() *Logger

func NewLogger

func NewLogger(logger *logrus.Logger) *Logger

func (*Logger) Error

func (l *Logger) Error(s string, i ...interface{})

func (*Logger) Info

func (l *Logger) Info(s string, i ...interface{})

Jump to

Keyboard shortcuts

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