tintin++ 日志记录功能脚本

使用以下脚本可以方便的记录你的游戏日志或关闭记录,请在你当前目录下新建logs文件夹存放日志,另外为了输入html日志,请输入以下指令配置你的环境:

#config log html
#ALIAS {log}
{
     #if {"%0" == "on"}
     {
          #if {"$logging" != "on"}
          {
               #format {logfile} {logs/%t.html} {%Y-%m-%d};
               #log append $logfile;
               #variable logging on
          };
          #else
          {
               #showme You are already logging.
          }
     };
     #elseif {"%0" == "off"}
     {
          #if {"$logging" == "on"}
          {
               #log off;
               #variable logging off
          };
          #else
          {
               #showme You are not logging.
          }
     };
     #else
     {
          #showme Turn logging on or off?
     }
}
京ICP备13031296号-4