Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EnvDebug is the environment variable that's tested to see if debugging // should be turned on. EnvDebug = `FLU_DEBUG` // EnvDebugDieFast if set to true, die immediately for testing EnvDebugDieFast = `FLU_DEBUG_DIE_FAST` // EnvSentryUrl to use for logging application logs and errors EnvSentryUrl = `FLU_SENTRY_URL` // EnvSilentMode to enable when no logging should happen (including Fatal) EnvSilentMode = `FLU_SILENT` // sentryExitTime to take when exiting while logging SentryExitTime = 2 * time.Second )
View Source
const ( LoggingLevelDebug = "debug" LoggingLevelApp = "app" LoggingLevelFatal = "fatal" )
View Source
const LoggingServerContext = `logging`
LoggingServerContext is the context that we use in the error messages to identify logging related errors.
Variables ¶
This section is empty.
Functions ¶
func DebugEnabled ¶
func DebugEnabled() bool
func RegisterShutdown ¶
func RegisterShutdown(callback func())
RegisterShutdown to register a callback to occur when a process exits fatally
Types ¶
Click to show internal directories.
Click to hide internal directories.