utils

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(doing string, err error)

Fatal is used to print an error message and exit the application.

func Sayf

func Sayf(message string, args ...interface{})

Sayf is used to print a message on Stderr

Types

type StandardLogger added in v1.0.2

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

StandardLogger enforces log message formats

func NewLogger added in v1.0.2

func NewLogger(enabled bool) *StandardLogger

NewLogger initializes the standard logger

func (*StandardLogger) LogHTTPRequest added in v1.0.2

func (l *StandardLogger) LogHTTPRequest(requestType string, requestURL string)

LogHTTPRequest logs and Http Request

func (*StandardLogger) LogSimpleMessage added in v1.0.2

func (l *StandardLogger) LogSimpleMessage(message string, a ...interface{})

LogSimpleMessage according to a format specifier

func (*StandardLogger) LogSimpleMessageAndSay added in v1.0.4

func (l *StandardLogger) LogSimpleMessageAndSay(message string, a ...interface{})

LogSimpleMessageAndSay according to a format specifier

func (*StandardLogger) NewNexusClient added in v1.0.2

func (l *StandardLogger) NewNexusClient(nexusURL string, username string)

NewNexusClient logs when a new Nexus is created

Jump to

Keyboard shortcuts

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