track

package
v0.0.0-...-fff7972 Latest Latest
Warning

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

Go to latest
Published: May 8, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AppLogFilename = "/tmp/logging-sample.app.log"
View Source
const EventLogFilename = "/tmp/logging-sample.event.log"

Variables

This section is empty.

Functions

func AppLog

func AppLog(d AppData)

func EventLog

func EventLog(d EventData)

Types

type AppData

type AppData struct {
	Level   string    `json:"level"`
	Message string    `json:"message"`
	Time    time.Time `json:"time"`
}

func (AppData) String

func (d AppData) String() string

type EventData

type EventData struct {
	Category string    `json:"category"`
	Action   string    `json:"action"`
	Label    string    `json:"label"`
	Value    string    `json:"value"`
	Time     time.Time `json:"time"`
}

func (EventData) String

func (d EventData) String() string

Jump to

Keyboard shortcuts

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