logutil

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GPS_DEBUG int = 0

Set in main via an env var

Functions

func Log

func Log(args ...interface{})

Log the passed string (maybe do more with this function someday?)

func LogDebug

func LogDebug(formatStr string, args ...interface{})

Log if GPS_DEBUG is non-zero (the lowest level of debug)

func LogFile

func LogFile(path string)

Dump and entire file into the log

func LogJsonBytes

func LogJsonBytes(message []byte)

Log JSON data

func LogRestRequest

func LogRestRequest(method string, message string)

Log REST requests

func LogRestResponse

func LogRestResponse(message string)

Log REST responses

func Logf

func Logf(formatStr string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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