Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudLogCore ¶
CloudLogCore provides a custom zapcore.Core implementation for sending log messages to CloudLog
func NewCloudlogCore ¶
func NewCloudlogCore(c zapcore.Core, index string, options []cloudlog.Option) (clc *CloudLogCore, err error)
NewCloudlogCore returns a new CloudLogCore or an error if no cloudlog.Client could be instantiated
func (*CloudLogCore) Check ¶
func (cc *CloudLogCore) Check(e zapcore.Entry, ce *zapcore.CheckedEntry) *zapcore.CheckedEntry
Check overrides the zapcore.Core Check method
type CloudlogClient ¶
type CloudlogClient interface {
PushEvent(interface{}) error
}
CloudlogClient interface allows you to pass your own implementation of a cloudlog client or mock clients
Click to show internal directories.
Click to hide internal directories.