|
|
@ -12,8 +12,8 @@ var pd *slsProducer |
|
|
|
func init() { |
|
|
|
func init() { |
|
|
|
pd = NewSLSProducer( |
|
|
|
pd = NewSLSProducer( |
|
|
|
WithEndpoint("cn-hangzhou.log.aliyuncs.com"), |
|
|
|
WithEndpoint("cn-hangzhou.log.aliyuncs.com"), |
|
|
|
WithAccessKey("-"), // 传入阿里云sls的key
|
|
|
|
WithAccessKey("LTAI5t8H6fmyMPfZ8JsBmcwS"), // 传入阿里云sls的key
|
|
|
|
WithAccessSecret("-"), // 传入阿里云sls的Secret
|
|
|
|
WithAccessSecret("EyWWwT2pOYRVWueYkc9Nnwy3RisYqC"), // 传入阿里云sls的Secret
|
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|