common

package
v0.0.0-...-3dc7bed Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ColorWriter      io.Writer = color.Output
	DefaultWriter    io.Writer = ColorWriter
	DefaultErrWriter io.Writer = os.Stderr
)

Functions

func DevErrLogger

func DevErrLogger() *elog.Log

func DevLogger

func DevLogger() *elog.Log

func Logger

func Logger() *elog.Log

Logger returns a eweb built-in logger, which is responsible for printing framework-related message. You can set it's level to FatalLevel to ensure that no framework-related message are printed. Of course, you can follow the elog official guide to set up the built-in logger.

func ProdLogger

func ProdLogger() *elog.Log

func SetLogger

func SetLogger(log *elog.Log)

SetLogger set a specified log to response for printing framework-related message if you are not satisfied with the built-in logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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