This Script Generate Independent Log Files in Mikrotiks default /pub Folder
\
Log Script
Written by Peter Eck, Brazil
Testet under RouterOS v.638rc24
{
:local txt "pub/Log"
:local t [/system clock get time ];
:local d [/system clock get date ];
:local d1 [:pick $d 0 3 ];
:local d2 [:pick $d 4 6 ];
:local d3 [:pick $d 7 11 ];
:local d4 ("$txt" . "-$d1" . "-$d2" . "-$d3" . " - $t");
:if ([/file find where name=$d4 ] = "" ) do={
/file print file=$d4
/file set [find where file=$d4 ] contents="";
/log print file=$d4
:log warning ("Print $d4");
}}