Documentation
¶
Overview ¶
Package internal contains some internal functionalities needed for logpipe. Handler contains bootstrapping logic and the handler. There is logging set up for logging the application's behaviour. Configurations for the application are set up in config package.
Index ¶
Constants ¶
View Source
const ( // InfoLevel for Info level InfoLevel = logrus.InfoLevel // WarnLevel for Warn level WarnLevel = logrus.WarnLevel // DebugLevel for Debug level DebugLevel = logrus.DebugLevel // ErrorLevel for Error level ErrorLevel = logrus.ErrorLevel // PanicLevel for Panic level PanicLevel = logrus.PanicLevel )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger embeds logrus.Logger
func DiscardLogger ¶
func DiscardLogger() *Logger
DiscardLogger returns a dummy logger. This is useful for tests when you don't want to actually write to the Stdout.
func WithWriter ¶ added in v0.0.5
WithWriter returns a logger that writes to w.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package config loads the configurations from a yaml file.
|
Package config loads the configurations from a yaml file. |
|
Package handler contains bootstrapping logic for the application, and all handlers for serving POST requests.
|
Package handler contains bootstrapping logic for the application, and all handlers for serving POST requests. |
Click to show internal directories.
Click to hide internal directories.