Documentation ¶
Overview ¶
Package logstash provides a logstash formatter for the krakend-gologging pkg
Index ¶
Constants ¶
View Source
const ( LEVEL_DEBUG = "DEBUG" LEVEL_INFO = "INFO" LEVEL_WARNING = "WARNING" LEVEL_ERROR = "ERROR" LEVEL_CRITICAL = "CRITICAL" ISO_8601 = "2006-01-02T15:04:05.000000-07:00" )
View Source
const Namespace = "github_com/devopsfaith/krakend-logstash"
Variables ¶
View Source
var ( ErrNothingToLog = errors.New("nothing to log") ErrWrongConfig = fmt.Errorf("getting the extra config for the krakend-logstash module") )
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a wrapper over a github.com/devopsfaith/krakend/logging logger
func (*Logger) Critical ¶
func (l *Logger) Critical(v ...interface{})
Critical implements the logger interface
func (*Logger) Debug ¶
func (l *Logger) Debug(v ...interface{})
Debug implements the logger interface
func (*Logger) Error ¶
func (l *Logger) Error(v ...interface{})
Error implements the logger interface
Click to show internal directories.
Click to hide internal directories.