coblog

package
v3.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: MIT Imports: 6 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Field

func Field(cmd *cobra.Command) (key string, value interface{})

Types

type Log

type Log struct {
	logrus.FieldLogger
}

func Component

func Component(component string, optionalLogger ...logrus.FieldLogger) Log

func Logger

func Logger(cmd *cobra.Command, optionalLogger ...logrus.FieldLogger) Log

func (Log) Command

func (log Log) Command(command string) Log

func (Log) Component

func (log Log) Component(component string) Log

func (Log) Struct

func (log Log) Struct(v interface{})

func (Log) StructFields

func (log Log) StructFields(v interface{})

func (Log) Write

func (log Log) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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