Documentation
¶
Overview ¶
Package logruscls provides logrus hook for tencent cls.
It has these top-level structs:
Hook CLSClient CLSAsyncClient
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLSAsyncClient ¶
type CLSAsyncClient struct {
// contains filtered or unexported fields
}
CLSAsyncClient to send logs to cls in batch on the background.
func NewCLSAsyncClient ¶
func NewCLSAsyncClient(region, secretID, secretKey, topicID string, batch int, delay time.Duration) (*CLSAsyncClient, error)
NewCLSAsyncClient creates a async version of CLSClient
type CLSClient ¶
CLSClient is cls client
func NewCLSClient ¶
NewCLSClient create a cls client
func (*CLSClient) UploadStructuredLog ¶
func (c *CLSClient) UploadStructuredLog(logGroupList *pb.LogGroupList) error
UploadStructuredLog upload structured log to tencent CLS
Click to show internal directories.
Click to hide internal directories.