记录器中数据的持久性 [英] Persistence of data in Logger

查看:55
本文介绍了记录器中数据的持久性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

数据在刷新之前在Logger.log中保留多长时间? Logger.log中数据的持续时间是多少?

How long does data stay in Logger.log before it is flushed? What is the persistence time of data in Logger.log?

我有许多脚本可以将数据输入Logger,然后通过电子邮件发送给我.我希望每天发送一次包含所有脚本结果的日志文件,而不是每个脚本运行时单独发送.

I have a number of scripts that feed data into Logger which is then emailed to me. I would like the log file sent once a day with all my script results rather than individually as each script runs.

注意:

推荐答案

正如Brian所说,每次脚本运行都会覆盖日志文件.也就是说,Logger.log的输出将一直保留到脚本再次运行为止.

As Brian said, the log file is written over every time the script runs. That is, the output of Logger.log will persist until the script runs again.

这篇关于记录器中数据的持久性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆