thinkgo: github.com/thinkoner/thinkgo/log/record Index | Files

package record

import "github.com/thinkoner/thinkgo/log/record"

Index

Package Files

record.go

Constants

const (
    // Detailed debug information
    DEBUG = 100
    // Interesting events
    INFO = 200
    // Uncommon events
    NOTICE = 250
    // Exceptional occurrences that are not errors
    WARNING = 300
    // Runtime errors
    ERROR = 400
    // Critical conditions
    CRITICAL = 500
    // Action must be taken immediately
    ALERT = 550
    // Urgent alert.
    EMERGENCY = 600
)

func GetLevels Uses

func GetLevels() map[Level]string

GetLevels returns levels map

type Level Uses

type Level int

type Record Uses

type Record struct {
    Level     Level
    Message   string
    LevelName string
    Channel   string
    Datetime  time.Time
    Formatted string
}

Package record imports 1 packages (graph) and is imported by 3 packages. Updated 2019-05-04. Refresh now. Tools for package owners.