Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶
type Hook struct {
// contains filtered or unexported fields
}
Hook provides a Logrus logging hook that sends logs to Stackdriver Logging
func NewHook ¶
func NewHook(ctx context.Context, projectID, logName string, level logrus.Level, opts ...option.ClientOption) *Hook
NewHook create a new Hook with project and logname configuration
Click to show internal directories.
Click to hide internal directories.