Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

日志收集 #2

Open
DCjanus opened this issue May 28, 2019 · 2 comments
Open

日志收集 #2

DCjanus opened this issue May 28, 2019 · 2 comments

Comments

@DCjanus
Copy link
Contributor

DCjanus commented May 28, 2019

当前日志直接输出到stdout,仅用于debug和看着好看

期望之后可以使用sentry之类的服务监控error和warn的日志,并可以对access log做统计,理想状况下可以自动的定时更新无敏感信息的日志到github方便大家自己做分析。

@DCjanus
Copy link
Contributor Author

DCjanus commented Jun 1, 2019

目前Tide没有提供获取client IP的API,虽然可以用caddy的日志做这个事,但还是有些奇怪,期望找到更好的办法处理这件事。

Blocked by http-rs/tide#269

@DCjanus
Copy link
Contributor Author

DCjanus commented Jun 2, 2019

sentry必须要接受到error级别的时才发送信息,看起来不适合作为支持日志分析的平台。但整合一套ELK之类的重型方案又确实不适合这个项目的需求,待进一步考察。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant