Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hooker ¶
type Hooker struct {
// contains filtered or unexported fields
}
Hooker is a logrus hooker for mongodb
func NewHooker ¶
NewHooker dials a mongodb server without authentication or encryption and readies the hook to place logs inside of the given collection
func NewHookerFromSession ¶
NewHookerFromSession makes a copy of an existing mongodb session and readies the hook to place logs inside of the given collection
Click to show internal directories.
Click to hide internal directories.