logger

package
v0.0.0-...-04db488 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package logger is a general-use logger utility for loftsman

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHelpLogo() string

GetHelpLogo will return the logo to display in the CLI help

Types

type Logger

type Logger struct {
	zerolog.Logger
}

Logger is our main logger object

func New

func New(jsonLogFile *os.File, commandName string) *Logger

New will return a new instance of a logger

func (*Logger) ClosingHeader

func (log *Logger) ClosingHeader(text string)

ClosingHeader will precede closing/final/called-out log lines

func (*Logger) GetRecord

func (log *Logger) GetRecord() string

GetRecord will return the saved log record from any single cli run

func (*Logger) Header

func (log *Logger) Header(text string)

Header will log a header for a section of other log messages

func (*Logger) SubHeader

func (log *Logger) SubHeader(text string)

SubHeader will print a subheader section in log output

Jump to

Keyboard shortcuts

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