logger

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: Apache-2.0 Imports: 7 Imported by: 187

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Access

func Access(ctx *context.Context)

Access print the access message.

func Error

func Error(err ...interface{})

Error print the error message.

func Info

func Info(info ...interface{})

Info print the info message.

func LogSQL added in v1.0.8

func LogSQL(statement string, args []interface{})

LogSQL print the sql info message.

func OpenSQLLog added in v1.0.8

func OpenSQLLog()

OpenSQLLog set the sqlLogOpen true.

func SetAccessLogger

func SetAccessLogger(path string, debug, isAccessLogOn bool)

SetAccessLogger set the access logger.

func SetErrorLogger

func SetErrorLogger(path string, debug, isErrorLogOn bool)

SetErrorLogger set the error logger.

func SetInfoLogger

func SetInfoLogger(path string, debug, isInfoLogOn bool)

SetInfoLogger set the info logger.

func SetLogger

func SetLogger(kind, path string, debug bool)

SetLogger set the logger.

func Warn

func Warn(info ...interface{})

Warn print the warning message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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