hiboot: hidevops.io/hiboot/pkg/starter/logging Index | Files

package logging

import "hidevops.io/hiboot/pkg/starter/logging"

Package logging provides the hiboot starter for injectable logging dependency

Index

Package Files

autoconfigure.go properties.go

Constants

const (
    // Profile is the profile of logging, it should be as same as the package name
    Profile = "logging"
    // Level is the property for setting logging level
    Level = "logging.level"
    // LevelDebug is the logging level options
    LevelDebug = "debug"
    // LevelInfo is the logging level options
    LevelInfo = "info"
    // LevelWarn is the logging level options
    LevelWarn = "warn"
    // LevelError is the logging level options
    LevelError = "error"
    // LevelFatal is the logging level options
    LevelFatal = "fatal"
    // LevelDebug is the logging level options
    LevelDisable = "disable"
)

type Properties Uses

type Properties struct {
    Level       string   `json:"level" default:"info"`
    Status      bool     `json:"status" default:"true"`
    IP          bool     `json:"ip" default:"true"`
    Method      bool     `json:"method" default:"true"`
    Path        bool     `json:"path" default:"true"`
    Query       bool     `json:"query" default:"false"`
    Columns     bool     `json:"columns" default:"false"`
    ContextKeys []string `json:"context_keys" default:"logger_message"`
    HeaderKeys  []string `json:"header_keys" default:"User-Agent"`
}

Properties is the logging properties

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