Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
bpcoder16
baize
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
v0.2.dev
Breadcrumbs
baize
/
conf.example
/
app.yaml
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
37 lines (33 loc) · 1.68 KB
v0.2.dev
Breadcrumbs
baize
/
conf.example
/
app.yaml
Copy path
Top
File metadata and controls
Code
Blame
37 lines (33 loc) · 1.68 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
env:
# 必填。应用名也是日志子目录名,请使用单个目录名。
appName: "example"
# 必填。可选 debug、test、release。release 从 Info 级别记录日志,其余从 Debug 开始。
runMode: "debug"
# 必填。进程时区,也用于确定日志轮转时间。
timeLocation: "Asia/Shanghai"
# 本机 IP。留空时先查 IPv4,再查 IPv6。
localIP: ""
log:
# 必填。日志格式可选 json 或 text。
format: "json"
# 是否记录调用处的文件名和行号,默认 false。
caller: false
# 是否将 stdout、stderr 写入 <dir>/<appName>/std/。默认 true,支持 Linux 和 macOS。
hookStd: false
# 日志根目录,默认 ./log。相对路径从进程启动目录计算,应用日志写入 <dir>/<appName>/biz/。
dir: "./log"
# 额外的日志名称,例如 [audit] 会生成 audit.info.log 等文件。
names: []
rotate:
# 按本地整点(1h)或午夜(24h)轮转,默认 1h。
every: "1h"
# 每组日志保留的文件数,含当前文件。默认 48,最少 3。
maxFiles: 48
# 时长建议写明单位,如 "30s" 或 "500ms"。整数按纳秒解析,30 表示 30ns。
# 所有常驻服务停收和排空的总时限。省略或设为 0s 时使用 30s,负值无效。
serviceShutdownTimeout: "30s"
# 服务排空后,关闭所有已登记资源的总时限。省略或设为 0s 时使用 30s,负值无效。
resourceCloseTimeout: "30s"
# 支持的服务类型为 http、cron、nats-consumer、realtime。填类型禁用整组,填“类型:实例名”禁用单个实例。
# 例如 ["nats-consumer:orders"] 表示仅禁用 orders 消费者。已禁用的服务跳过构造。
disabledServices: []
You can’t perform that action at this time.