Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultTimestampFormat = "2006-01-02 15:04:05.000"
DefaultTimestampFormat is the default format for outputting a timestamp.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
Cmd represents a command.
func Cmds ¶
func Cmds() []*Cmd
Cmds returns a slice of all available commands, sorted in increasing order by command name.
func (*Cmd) Description ¶
Description returns a brief one-line description of the command.
type EntryPrinter ¶
EntryPrinter is the interface satisfied by an object that can output log entries.
func NewCSVPrinter ¶ added in v0.1.25
func NewCSVPrinter(w io.Writer, format string) EntryPrinter
NewCSVPrinter returns a new EntryPrinter that outputs log entries in CSV format. The timestamp will be formatted according to 'format'.
func NewTabPrinter ¶
func NewTabPrinter(w io.Writer, format string) EntryPrinter
NewTabPrinter returns a new EntryPrinter that uses tabs to separate the information in a log entry. The timestamp will be formatted according to 'format'.
Click to show internal directories.
Click to hide internal directories.