elf

package
v0.0.0-...-2a50342 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(event string, message string, options LogOptions)

Log sends the specified parameters to standard output in ELF format (http://www.w3.org/TR/WD-logfile.html) #Version: 1.0 #Fields: date time event message parent-event time-taken payload cause

`date` and `time` fields are generated when calling the Log function `event` and `message` fields are required all other fields are optional and provided using `LogOptions`

Types

type LogOptions

type LogOptions struct {
	Tags    string
	Started time.Time
	Payload string
	Cause   error
}

LogOptions is a simple type to provide optional parameters to Log function

Jump to

Keyboard shortcuts

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