Documentation ¶
Overview ¶
Package logging is the logging package used by Neptune.io agent. The implementation might route the logging via any other Go logging package but should mask those details from remaining agent packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupLogger ¶
Function to setup logger for agent.
Types ¶
type NeptuneHook ¶
type NeptuneHook struct {
// contains filtered or unexported fields
}
NeptuneHook to send logs to Neptune service.
func NewNeptuneHook ¶
func NewNeptuneHook(level logrus.Level, ch chan string) *NeptuneHook
NewNeptuneHook creates a hook to be added to an instance of logger.
func (*NeptuneHook) Fire ¶
func (hook *NeptuneHook) Fire(entry *logrus.Entry) error
Fire sends the event to Neptune
func (*NeptuneHook) Levels ¶
func (hook *NeptuneHook) Levels() []logrus.Level
Levels returns the list of logging levels that we want to send to Neptune.
Click to show internal directories.
Click to hide internal directories.