Gob 框架Gob 框架
主页
快速开始
使用文档
服务提供者
提供命令
Github
主页
快速开始
使用文档
服务提供者
提供命令
Github
    • gob:app
    • gob:cache
    • gob:config
    • gob:distributed
    • gob:env
    • gob:id
    • gob:kernel
    • gob:log
    • gob:orm
    • gob:redis
    • gob:sls
    • gob:ssh
    • gob:trace

gob:sls

服务介绍:

sls 提供对接阿里云日志服务的服务,可以用于日志的收集。

支持命令:无

支持配置:

配置文件为 config/[env]/app.yaml ,如下是一个配置示例:

# 阿里云SLS服务
sls:
	endpoint: cn-shanghai.log.aliyuncs.com
	access_key_id: your_access_key_id
	access_key_secret: your_access_key_secret
	project: gob-test
	logstore: gob_test_logstore

提供方法:

type SLSService interface {
	GetSLSInstance() (*producer.Producer, error)
	GetProject() (string, error)
	GetLogstore() (string, error)
}
Last Updated:
Contributors: 陈壁浩
Prev
gob:redis
Next
gob:ssh