新增:极光config
This commit is contained in:
36
config.yaml
36
config.yaml
@@ -494,3 +494,39 @@ xingwei:
|
|||||||
max_backups: 5
|
max_backups: 5
|
||||||
max_age: 30
|
max_age: 30
|
||||||
compress: true
|
compress: true
|
||||||
|
|
||||||
|
# ===========================================
|
||||||
|
# ✨ 极光配置
|
||||||
|
# ===========================================
|
||||||
|
jiguang:
|
||||||
|
url: "http://api.jiguangcloud.com/jg-open-api-gateway/api"
|
||||||
|
app_id: "66ZA28w5" # 请替换为实际的 appId
|
||||||
|
app_secret: "e5261d0f6f003ae7b9fc1b0255b21761bb618d56" # 请替换为实际的 appSecret
|
||||||
|
sign_method: "hmac" # 签名方法:md5 或 hmac,默认 hmac
|
||||||
|
timeout: 60s # 请求超时时间,默认 60 秒
|
||||||
|
|
||||||
|
# 极光日志配置
|
||||||
|
logging:
|
||||||
|
enabled: true
|
||||||
|
log_dir: "logs/external_services"
|
||||||
|
service_name: "jiguang"
|
||||||
|
use_daily: true
|
||||||
|
enable_level_separation: true
|
||||||
|
|
||||||
|
# 各级别配置
|
||||||
|
level_configs:
|
||||||
|
info:
|
||||||
|
max_size: 100
|
||||||
|
max_backups: 5
|
||||||
|
max_age: 30
|
||||||
|
compress: true
|
||||||
|
error:
|
||||||
|
max_size: 200
|
||||||
|
max_backups: 10
|
||||||
|
max_age: 90
|
||||||
|
compress: true
|
||||||
|
warn:
|
||||||
|
max_size: 100
|
||||||
|
max_backups: 5
|
||||||
|
max_age: 30
|
||||||
|
compress: true
|
||||||
|
|||||||
Reference in New Issue
Block a user