logging

package
v0.0.0-...-8b1022e Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2016 License: Apache-2.0, Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

Close stops logging.

func Configure

func Configure(cloudConfigCA string, deviceID string,
	version string, revisionDate string,
	bordaReportInterval time.Duration, bordaSamplePercentage float64) (success chan bool)

Configure will set up logging. An empty "addr" will configure logging without a proxy Returns a bool channel for optional blocking.

func EnableFileLogging

func EnableFileLogging() error

EnableFileLogging enables sending Lantern logs to a file.

func Flush

func Flush()

Flush forces output flushing if the output is flushable

func NonStopWriter

func NonStopWriter(writers ...io.Writer) io.Writer

NonStopWriter creates a writer that duplicates its writes to all the provided writers, even if errors encountered while writting.

func RegisterUserAgent

func RegisterUserAgent(agent string)

RegisterUserAgent tries to find the User-Agent in the HTTP request and keep track of the applications using Lantern during this session

func SetExtraLogglyInfo

func SetExtraLogglyInfo(key, value string)

SetExtraLogglyInfo supports setting an extra info value to include in Loggly reports (for example Android application details)

Types

This section is empty.

Jump to

Keyboard shortcuts

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