Documentation
¶
Index ¶
- func NewCore(ops ...Option) (zapcore.Core, func() error)
- func NewMapObjEncoder(cfg zapcore.EncoderConfig) *mapObjEncoder
- type LogContent
- type LogProject
- type LogStore
- type Option
- func WithAccessKeyID(akID string) Option
- func WithAccessKeySecret(akSecret string) Option
- func WithApiBulkSize(apiBulkSize int) Option
- func WithApiRetryCount(apiRetryCount int) Option
- func WithApiRetryMaxWaitTime(apiRetryMaxWaitTime time.Duration) Option
- func WithApiRetryWaitTime(apiRetryWaitTime time.Duration) Option
- func WithApiTimeout(apiTimeout time.Duration) Option
- func WithEncoder(enc zapcore.Encoder) Option
- func WithEndpoint(endpoint string) Option
- func WithFallbackCore(core zapcore.Core) Option
- func WithFlushBufferInterval(flushBufferInterval time.Duration) Option
- func WithFlushBufferSize(flushBufferSize int) Option
- func WithLevelEnabler(lv zapcore.LevelEnabler) Option
- func WithLogstore(logStore string) Option
- func WithProject(project string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMapObjEncoder ¶
func NewMapObjEncoder(cfg zapcore.EncoderConfig) *mapObjEncoder
Types ¶
type LogContent ¶
type LogContent = pb.Log_Content
type LogProject ¶
type LogProject struct {
// contains filtered or unexported fields
}
LogProject defines the Ali project detail
func (*LogProject) GetLogStore ¶
func (p *LogProject) GetLogStore(name string) (s *LogStore, err error)
GetLogStore returns logstore according by logstore name.
func (*LogProject) ListLogStore ¶
func (p *LogProject) ListLogStore() (storeNames []string, err error)
ListLogStore returns all logstore names of project p.
type LogStore ¶
type LogStore struct { Name string `json:"logstoreName"` TTL int ShardCount int CreateTime uint32 LastModifyTime uint32 // contains filtered or unexported fields }
LogStore stores the logs
type Option ¶
type Option func(c *config)
func WithAccessKeyID ¶
func WithAccessKeySecret ¶
func WithApiBulkSize ¶
func WithApiRetryCount ¶
func WithApiRetryMaxWaitTime ¶
func WithApiRetryWaitTime ¶
func WithApiTimeout ¶
func WithEncoder ¶
func WithEndpoint ¶
func WithFallbackCore ¶
func WithFlushBufferInterval ¶
func WithFlushBufferSize ¶
func WithLevelEnabler ¶
func WithLevelEnabler(lv zapcore.LevelEnabler) Option
func WithLogstore ¶
func WithProject ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.