Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我开发了一个小应用程序。对于日志,我在 aws 中使用了望塔。日志工作正常。日志通过 aws 中的文件明智日志插入到 cloudwatch中,但我希望所有日志仅注册在一个文件中(例如 api.views )。这可能吗?如果是,如何?
解决了这个问题...我在一个文件中编写了日志函数..在我想写日志的任何地方调用该函数....所以所有日志都以相同的文件名保存