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 ¶
NewDevLogger returns a new DevLogger.
Click to show internal directories.
Click to hide internal directories.