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.
有没有一种简单的方法可以以编程方式找出自程序启动以来在某个级别记录的消息总数?我可以通过在 Logger 周围编写一个包装器并在任何地方使用它来做到这一点,但也许有更简单的方法?