log

package
v0.0.0-...-48d6722 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: GPL-3.0-or-later

Index

Constants

View Source
const (
	LOG_MAIN         = "MA"
	LOG_IMAPASSASSIN = "IA"
	LOG_SPAMASSASSIN = "SA"
	LOG_PERSISTENCE  = "PI"
	LOG_IMAP         = "IM"
)

Variables

This section is empty.

Functions

func InitLogging

func InitLogging(loglevel string)

func Logger

func Logger(logger string) *logrus.Logger

func SetLogLevel

func SetLogLevel(loglevel string)

Types

type PrefixLogger

type PrefixLogger struct {
	// contains filtered or unexported fields
}

func NewPrefixLogger

func NewPrefixLogger(prefix string) *PrefixLogger

func (*PrefixLogger) Format

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

Jump to

Keyboard shortcuts

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