Documentation ¶
Index ¶
- func NewCore(ops ...Option) (zapcore.Core, func() error)
- type LogContent
- type LogProject
- type LogStore
- type MapObjEncoder
- type Option
- func WithAPIBulkSize(apiBulkSize int) Option
- func WithAPIIdleConnTimeout(apiIdleConnTimeout time.Duration) Option
- func WithAPIMaxIdleConns(apiMaxIdleConns int) Option
- func WithAPIMaxIdleConnsPerHost(apiMaxIdleConnsPerHost 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 WithAccessKeyID(akID string) Option
- func WithAccessKeySecret(akSecret string) 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 ¶
Types ¶
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 MapObjEncoder ¶ added in v0.4.0
type MapObjEncoder struct { *zapcore.EncoderConfig *zapcore.MapObjectEncoder // contains filtered or unexported fields }
MapObjEncoder ...
func NewMapObjEncoder ¶
func NewMapObjEncoder(cfg zapcore.EncoderConfig) *MapObjEncoder
NewMapObjEncoder ...
func (*MapObjEncoder) Clone ¶ added in v0.4.0
func (e *MapObjEncoder) Clone() zapcore.Encoder
Clone ...
func (*MapObjEncoder) EncodeEntry ¶ added in v0.4.0
func (e *MapObjEncoder) EncodeEntry(ent zapcore.Entry, fields []zapcore.Field) (*buffer.Buffer, error)
EncodeEntry ...
type Option ¶
type Option func(c *config)
Option 可选项
func WithAPIBulkSize ¶ added in v0.4.0
WithAPIBulkSize ...
func WithAPIIdleConnTimeout ¶ added in v0.4.0
WithAPIIdleConnTimeout ...
func WithAPIMaxIdleConns ¶ added in v0.4.0
WithAPIMaxIdleConns ...
func WithAPIMaxIdleConnsPerHost ¶ added in v0.4.0
WithAPIMaxIdleConnsPerHost ...
func WithAPIRetryCount ¶ added in v0.4.0
WithAPIRetryCount ...
func WithAPIRetryMaxWaitTime ¶ added in v0.4.0
WithAPIRetryMaxWaitTime ...
func WithAPIRetryWaitTime ¶ added in v0.4.0
WithAPIRetryWaitTime ...
func WithAPITimeout ¶ added in v0.4.0
WithAPITimeout ...
func WithAccessKeySecret ¶
WithAccessKeySecret ....
func WithFlushBufferInterval ¶
WithFlushBufferInterval ...
func WithFlushBufferSize ¶
WithFlushBufferSize ...
Source Files ¶
Click to show internal directories.
Click to hide internal directories.