SecureCRT日志设置每行时间

SecureCRT日志设置时针对每个会话单独设置的

下图两个串口打印的地方,每个是一个会话。

 打开【选项】

按照如下选项进行配置:

每次断开重新链接都会重新存一个日志文件,文件生成时间以秒为最小单位。

并且每行都有时间记录。

一般使用”年月日时分秒毫秒“就够。

如果【文件名】设置如下:%S-%Y%M%D_%h_%m_%s.log

文件结果会存成这个样子:

如果【在每一行(E)】设置如下:%Y%M%D_%h:%m:%s

 文件内容会存成这个样子:

至于那些%对应的内容,SecurCRT有详细的帮助文档,请参考下面原文:

 
In the dialog, this section lists some of the variables that SecureCRT can expand when writing to the log file. A complete list is shown below.
 
%H - hostname (not valid with protocols that do not specify a host, such as Serial)
 
%S - session name                   //session 名称
 
%Y - four-digit year                //4位的年
 
%y - two-digit year
 
%M - two-digit month                 //2位的月
 
%D - two-digit day of the month      //2位的日
 
%P - port (not valid with protocols that do not specify a port, such as RLogin)
 
%h - two-digit hour                  //2位的时
 
%m - two-digit minute                //2位的分
 
%s - two-digit seconds               //2位的秒
 
%t - three-digit milliseconds        //3位毫秒
 
%F - directory path starting below the "Sessions" folder
 
%% - percent (%)
 
%envvar% - environment variable
 

Note: The environment variable substitution occurs first.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值