logger

package
v0.0.0-...-4b56e16 Latest Latest
Warning

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

Go to latest
Published: May 11, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FacadeWrapper = &larago.Facade{}

FacadeWrapper for facade.

Functions

func IsTTY

func IsTTY() bool

IsTTY app runs in tty.

Types

type Logger

type Logger struct {
	DateTimeFormat string
	DebugMode      bool
	Logger         *log.Logger
	// contains filtered or unexported fields
}

Logger struct.

func Facade

func Facade() *Logger

Facade for logger.

func (*Logger) Debug

func (l *Logger) Debug(format string, a ...interface{})

Debug text.

func (*Logger) Error

func (l *Logger) Error(err error)

Error text.

func (Logger) From

func (l Logger) From(from ...string) *Logger

From sets the actual source of the log record.

func (*Logger) Info

func (l *Logger) Info(format string, a ...interface{})

Info text.

func (*Logger) Println

func (l *Logger) Println(message string)

Println message.

func (Logger) Raw

func (l Logger) Raw() *Logger

Raw record. Without date, file:line, etc.

func (*Logger) SetOutput

func (l *Logger) SetOutput(w io.Writer) *Logger

SetOutput changes default output.

func (*Logger) Success

func (l *Logger) Success(format string, a ...interface{})

Success text.

func (*Logger) Warning

func (l *Logger) Warning(format string, a ...interface{})

Warning text.

func (Logger) WithContext

func (l Logger) WithContext(context interface{}) *Logger

WithContext adds additional context to the record.

func (Logger) WithTrace

func (l Logger) WithTrace() *Logger

WithTrace adds trace to the record.

type ServiceProvider

type ServiceProvider struct{}

ServiceProvider struct.

func (*ServiceProvider) Register

func (p *ServiceProvider) Register(application *larago.Application)

Register service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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