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.
您能否给我一个 Scala 中的无标记最终版本,该日志实现在单元测试中很容易测试,但在生产中使用 slf4j 或类似框架运行?
这是我为自己设计的骨架。
测试是用猫的 Writer monad 编写的。
待办事项:为除Id. 如果您需要同时测试错误怎么办。
Id