更新时间:2023-12-05 14:04:28
自己将日志导向数据库的 处理程序 问题。当它失败时,您可以从记录器的处理程序列表中删除它。有许多方法来处理故障模式。
Write yourself a handler that directs the logs to the database in question. When it fails, you can remove it from the handler list of the logger. There are many ways to deal with the failure-modes.