logging

package
v0.0.0-...-fd97e0e Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2016 License: Apache-2.0, Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

func Configure

func Configure(addrFN eventual.Getter, cloudConfigCA string, instanceId string,
	version string, revisionDate string) (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

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