layout

package
v0.0.0-...-5731446 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2016 License: MIT Imports: 8 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTimeLayout = "2006-01-02 15:04:05.000000000 -0700 MST"

DefaultTimeLayout is the default layout used by %d

View Source
var LegacyDefaultTimeLayout = "2006-01-02 15:04:05.999999999 -0700 MST"

LegacyDefaultTimeLayout is the legacy (non-zero padded) time layout. Set layout.DefaultTimeLayout = layout.LegacyDefaultTimeLayout to revert behaviour.

Functions

func Basic

func Basic() *basicLayout

func Pattern

func Pattern(pattern string) *patternLayout

Types

type Layout

type Layout interface {
	Format(level levels.LogLevel, message string, args ...interface{}) string
}

func Default

func Default() Layout

Jump to

Keyboard shortcuts

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