vic: Index | Files | Directories

package log

import ""


Package Files

log.go text_formatter.go

func CreateSyslogHook Uses

func CreateSyslogHook(cfg *LoggingConfig) (logrus.Hook, error)

func Init Uses

func Init(cfg *LoggingConfig) error

type LoggingConfig Uses

type LoggingConfig struct {
    Formatter logrus.Formatter
    Level     logrus.Level
    Syslog    *SyslogConfig

func NewLoggingConfig Uses

func NewLoggingConfig() *LoggingConfig

type SyslogConfig Uses

type SyslogConfig struct {
    Network  string
    RAddr    string
    Tag      string
    Priority syslog.Priority

type TextFormatter Uses

type TextFormatter struct {
    // TimestampFormat is the format used to print the timestamp.  By default
    // an RFC3339 timestamp is used.
    TimestampFormat string

func NewTextFormatter Uses

func NewTextFormatter() *TextFormatter

NewTextFormatter returns a text formatter

func (*TextFormatter) Format Uses

func (f *TextFormatter) Format(entry *logrus.Entry) ([]byte, error)



Package log imports 3 packages (graph) and is imported by 16 packages. Updated 2018-03-24. Refresh now. Tools for package owners.