Log Message Actions not working
Posted: Sun Nov 16, 2025 2:40 pm
Normally these have worked. I always set Log Level to Errors Only after I have debugged my task. But now if I make a small change such as
adding a [If - End If] action with new Log Message actions the Log Message actions don't appear in the .LOG file.
BTW: How do I attach a .tsk file
adding a [If - End If] action with new Log Message actions the Log Message actions don't appear in the .LOG file.
Code: Select all
-: 11/13/2025 3:55:00 PM: ====== [Start Task:] Backup Tasks Daily
-: 11/13/2025 3:55:01 PM: [STEP: 17] Copy: C:\Users\redwa\Documents\RoboTask\*.* -> C:\Users\redwa\Documents\RoboTask Backup\Thursday
-: 11/13/2025 3:55:15 PM: ====== [End Task:] Backup Tasks Daily
-: 11/14/2025 3:55:00 PM: ====== [Start Task:] Backup Tasks Daily
-: 11/14/2025 3:55:12 PM: ====== [End Task:] Backup Tasks Daily
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1332952927
Comment=STRINGLIST
ContinueOnError=INTEGER|2
DisableOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task56"
Hide=INTEGER|0
ID=INTEGER|-83262569
LogOnAsUser=INTEGER|1
Name=STRING|"Delete Empty Log Files"
OnErrorTaskID=INTEGER|1879502808
Priority=INTEGER|3
RestrictRESTAPIAccess=INTEGER|0
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
StepPause=INTEGER|0
ToLog=INTEGER|1
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action10=FOLDER
Action11=FOLDER
Action12=FOLDER
Action13=FOLDER
Action14=FOLDER
Action15=FOLDER
Action16=FOLDER
Action17=FOLDER
Action18=FOLDER
Action19=FOLDER
Action2=FOLDER
Action20=FOLDER
Action21=FOLDER
Action22=FOLDER
Action23=FOLDER
Action24=FOLDER
Action25=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
Action7=FOLDER
Action8=FOLDER
Action9=FOLDER
[Actions\Action1]
ActionID=STRING|"A_CLEAR_TASKLOG"
Enabled=INTEGER|-1
Name=STRING|"Clear Task Log"
[Actions\Action10]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""CurrentFileSize"" with value ""{FileSize({CurrentLog})}"""
Params=FOLDER
[Actions\Action10\Params]
_rt_variables_produced=STRING|"CurrentFileSize"
expand=STRING|"1"
linecount=STRING|"1"
varname=STRING|"CurrentFileSize"
varvalue=STRING|"{FileSize({CurrentLog})}"
[Actions\Action11]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|0
Name=STRING|"Log Message"
Params=FOLDER
[Actions\Action11\Params]
expression=STRING|"3"
message=STRING|"[STEP: 11] Current Log File: {CurrentLog} | Size: {CurrentFileSize}"
mode=STRING|"0"
type=STRING|"3"
[Actions\Action12]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER
[Actions\Action12\Params]
case=STRING|"0"
connection=STRING|"0"
count=STRING|"1"
operator=STRING|"4"
type=STRING|"1"
value1=STRING|"{CurrentFileSize}"
value2=STRING|"3"
[Actions\Action13]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER
[Actions\Action13\Params]
expression=STRING|"3"
message=STRING|"[STEP: 13] Deleting Log File: {CurrentLog} | Size: {CurrentFileSize}"
mode=STRING|"0"
type=STRING|"0"
[Actions\Action14]
ActionID=STRING|"A_FILE_DELETE"
Enabled=INTEGER|-1
Name=STRING|"Delete File"
Params=FOLDER
[Actions\Action14\Params]
Count=STRING|"1"
deletedirs=STRING|"0"
deletereadonly=STRING|"0"
file0=STRING|"{CurrentLog}"
hidden=STRING|"0"
subdir=STRING|"0"
system=STRING|"0"
ToRecycleBin=STRING|"0"
[Actions\Action15]
ActionID=STRING|"A_VARIABLES_INCREMENT"
Enabled=INTEGER|-1
Name=STRING|"Increment variable ""DeleteCount"""
Params=FOLDER
[Actions\Action15\Params]
incement=STRING|"1"
vaiable=STRING|"DeleteCount"
[Actions\Action16]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"
[Actions\Action17]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
[Actions\Action18]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER
[Actions\Action18\Params]
case=STRING|"0"
connection=STRING|"0"
count=STRING|"1"
operator=STRING|"3"
type=STRING|"1"
value1=STRING|"{DeleteCount}"
value2=STRING|"0"
[Actions\Action19]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log message (information) ""[STEP: 18] Deletied {DeleteCou..."""
Params=FOLDER
[Actions\Action19\Params]
expression=STRING|"3"
message=STRING|"[STEP: 18] Deletied {DeleteCount} Log Files "
mode=STRING|"0"
type=STRING|"0"
[Actions\Action2]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER
[Actions\Action2\Params]
expression=STRING|"3"
message=STRING|"====== [Start Task:] Delete Empty Log Files"
mode=STRING|"0"
type=STRING|"3"
[Actions\Action20]
ActionID=STRING|"A_FLOW_ELSE"
Enabled=INTEGER|-1
Name=STRING|"Else"
[Actions\Action21]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log message (information) ""[STEP: 21] Deleted Zero Log Fi..."""
Params=FOLDER
[Actions\Action21\Params]
expression=STRING|"3"
message=STRING|"[STEP: 21] Deleted Zero Log Files"
mode=STRING|"0"
type=STRING|"0"
[Actions\Action22]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"
[Actions\Action23]
ActionID=STRING|"A_FILE_DELETE"
Enabled=INTEGER|-1
Name=STRING|"Delete File"
Params=FOLDER
[Actions\Action23\Params]
Count=STRING|"1"
deletedirs=STRING|"0"
deletereadonly=STRING|"0"
file0=STRING|"{LogFilesList}"
hidden=STRING|"0"
subdir=STRING|"0"
system=STRING|"0"
ToRecycleBin=STRING|"1"
[Actions\Action24]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log message (information) ""[STEP: 24] Deleted: {DeleteCou..."""
Params=FOLDER
[Actions\Action24\Params]
expression=STRING|"3"
message=STRING|"[STEP: 24] Deleted: {DeleteCount} File(s)"
mode=STRING|"0"
type=STRING|"0"
[Actions\Action25]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER
[Actions\Action25\Params]
expression=STRING|"3"
message=STRING|"====== [End Task:] Delete Empty Log Files"
mode=STRING|"0"
type=STRING|"3"
[Actions\Action3]
ActionID=STRING|"A_FOLDER_CHANGE"
Enabled=INTEGER|-1
Name=STRING|"Set Current Folder ({LogFolder})"
Params=FOLDER
[Actions\Action3\Params]
folder=STRING|"{LogFolder}"
[Actions\Action4]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create local variable ""LogFilesList"" with value ""LogFiles.txt"""
Params=FOLDER
[Actions\Action4\Params]
_rt_variables_produced=STRING|"LogFilesList"
expand=STRING|"0"
linecount=STRING|"1"
varkind=STRING|"1"
varname=STRING|"LogFilesList"
varvalue=STRING|"LogFiles.txt"
[Actions\Action5]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create local variable ""CurrentLog"" with value """""
Params=FOLDER
[Actions\Action5\Params]
_rt_variables_produced=STRING|"CurrentLog"
expand=STRING|"0"
linecount=STRING|"0"
varkind=STRING|"1"
varname=STRING|"CurrentLog"
[Actions\Action6]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create local variable ""CurrentFileSize"" with value ""0"""
Params=FOLDER
[Actions\Action6\Params]
_rt_variables_produced=STRING|"CurrentFileSize"
expand=STRING|"0"
linecount=STRING|"1"
varkind=STRING|"1"
varname=STRING|"CurrentFileSize"
varvalue=STRING|"0"
[Actions\Action7]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create local variable ""DeleteCount"" with value ""0"""
Params=FOLDER
[Actions\Action7\Params]
_rt_variables_produced=STRING|"DeleteCount"
expand=STRING|"0"
linecount=STRING|"1"
varkind=STRING|"1"
varname=STRING|"DeleteCount"
varvalue=STRING|"0"
[Actions\Action8]
ActionID=STRING|"A_FILE_SEARCH"
Enabled=INTEGER|-1
Name=STRING|"Create File List (file: {LogFilesList})"
Params=FOLDER
[Actions\Action8\Params]
After=STRING|"0"
aftercount=STRING|"0"
AfterLine=STRING|"0"
Before=STRING|"0"
beforecount=STRING|"0"
BeforeLine=STRING|"0"
createmode=STRING|"1"
date1=STRING|"20240625"
date2=STRING|"20240625"
destfile=STRING|"{LogFilesList}"
DuringDays=STRING|"1"
DuringHours=STRING|"1"
DuringMinutes=STRING|"1"
DuringMonths=STRING|"1"
file0=STRING|"*.log"
filecount=STRING|"1"
OlderDays=STRING|"1"
OlderHours=STRING|"1"
OlderMinutes=STRING|"1"
OlderMonths=STRING|"1"
savetofile=STRING|"1"
savetovar=STRING|"0"
searchkind=STRING|"0"
sort=STRING|"1"
sortby=STRING|"0"
sortorder=STRING|"0"
subdirs=STRING|"0"
WithoutPath=STRING|"0"
[Actions\Action9]
ActionID=STRING|"A_LOOP_TEXT"
Enabled=INTEGER|-1
Name=STRING|"Text Loop"
Params=FOLDER
[Actions\Action9\Params]
_rt_variables_produced=STRING|"CurrentLog"
delimiter_no=STRING|"0"
destvar=STRING|"CurrentLog"
file=STRING|"{LogFilesList}"
linecount=STRING|"0"
quote_char=STRING|"0"
sourcetext=STRING|"0"
strict_delim=STRING|"1"
[Events]
Event1=FOLDER
[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_GENERAL_SHEDULER"
Name=STRING|"Scheduler (Every Saturday @ 3:40pm)"
Params=FOLDER
UniqueID=INTEGER|691018658
[Events\Event1\Params]
periodicity=STRING|"1"
periodparameter=STRING|"0000001"
periodparameter2=STRING|"11111"
startdate=STRING|"45753"
time0=STRING|"56400000"
timecount=STRING|"1"
wakeup=STRING|"0"