devlogger

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2016 License: Apache-2.0 Imports: 7 Imported by: 10

Documentation

Overview

Package devlogger provides an implementation of a syslog server to be used for dev environments.

Index

Constants

View Source
const DevLoggerService = "devlogger"

DevLoggerService is the name of the devlogger internal service.

View Source
const PackageName = "devlogger"

PackageName is the name of this package.

Variables

View Source
var (
	// DevLoggerListenPortFlag is the port to listen to for syslog messages.
	DevLoggerListenPortFlag = config.DeclareString(
		PackageName, "devLoggerListenPort", "6514")
	// InstanceIDFlag is the instance ID of the devlogger. Note: This is a
	// different instance ID than leverutil.InstanceIDFlag because they serve
	// different things.
	InstanceIDFlag = config.DeclareString(
		PackageName, "instanceID", leverutil.RandomID())
	// DisableFlag disables the devlogger server.
	DisableFlag = config.DeclareBool(PackageName, "disable")
)

Functions

This section is empty.

Types

type DevLogger

type DevLogger struct {
	// contains filtered or unexported fields
}

DevLogger is a syslog server meant to be used only for dev instances of Lever. It doesn't have the necessary redundancy and safeguards in place for production use.

func NewDevLogger

func NewDevLogger(ownIP string) (*DevLogger, error)

NewDevLogger returns a new DevLogger.

func (*DevLogger) Close

func (dl *DevLogger) Close()

Close closes the server.

Jump to

Keyboard shortcuts

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