0fatal 83a9960fdd
feat: replace current logging solution with log server (#1381)
* feat: add log server

* feat(runtimes&server): adapt to log server

* chore(build): add helm template for log-server

* feat(log-server): health check

* refactor(server): fetch function logs from log server

* chore(docs): tidy docs for function log

* chore: clean code

* chore(ci): dockerize log server

* fix(server): replace db in FunctionConsole.write

* feat: verify appid for log server

* chore(runtimes): restart app when file changes

* chore: adjust env and region conf for supporting log server

* refactor(server): get logs from log server
2023-07-14 15:39:00 +08:00

22 lines
497 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 云函数历史日志
---
# {{ $frontmatter.title }}
:::warning
只有在云函数中加 `console` 打印才会保存日志!
:::
云函数的全部历史日志,全部都自动保存到了日志板块中,日志会保留 3 天
可根据请求 ID `requestId` 和云函数名筛选
![function-log](/doc-images/function-log.png)
1、点击日志切换到日志板块
2、可根据 `requestId` 和云函数名搜索指定日志
3、点击单个日志可查看详细内容