logger

package
v0.0.0-...-02e5558 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(cfg config.LogConfig) error

InitLogger setup the logger

func ParseAdapter

func ParseAdapter(name string) (string, error)

ParseAdapter turns an adapter name from log to beego type

func ParseAdapterArgs

func ParseAdapterArgs(name string, values map[string]interface{}) string

ParseAdapterArgs turns 'level' to human readable string

func ParseLog

func ParseLog(cfg config.LogConfig) (string, string, error)

ParseLog reads user's config

func ParseLogLevel

func ParseLogLevel(level string) (int, error)

ParseLogLevel turns a log string to int type

Types

This section is empty.

Jump to

Keyboard shortcuts

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