levelprefixed

package
v0.0.0-...-5bc14d6 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package levelprefixed defines a delegate adapter that prefixes messages with the log's severity level

Index

Constants

View Source
const DefaultDelimiter = ':'

DefaultDelimiter defines the default delimiter used for the level prefix

View Source
const DefaultPadding = "\t"

DefaultPadding defines the default padding used for the level prefix

Variables

This section is empty.

Functions

func New

New constructs a new instance by injecting an adaptee

func NewWithCustomPresentation

func NewWithCustomPresentation(adaptee commonlog.LevelLogger, prefix string, delimiter rune, padding string) adapter.LogAdapter

NewWithCustomPresentation constructs a new instance by injecting an adaptee and setting options to control the presentation of the level prefix

func NewWithPrefix

func NewWithPrefix(adaptee commonlog.LevelLogger, prefix string) adapter.LogAdapter

NewWithPrefix constructs a new instance by injecting an adaptee and setting a prefix

Types

This section is empty.

Jump to

Keyboard shortcuts

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