Clear Log Dynamic Action

Log files can fill in a lot of disk space. Clear Log Action helps users to delete log files and log records on a regular basis

Metadata tab

Clear Log Action - Metadata tab
 

  1. The Write Variables option ensures that the “Package Action” logs the variable values into the “Action vars before log file” before the action is executed and logs the updated variable values into the “Action vars after log file” after the action completes.
  2. This option is typically used for debugging and is not recommended in a production environment.
  3. It can be globally disabled through the options dialog .

Parameters tab

Clear Log Action - Parameters tab

Variables tab

The Variables tab defines the variables to be updated during the action’s execution.

Clear Log Action - Variables tab

Execution log tab

The Execution log tab is populated after the action is executed. Double click on the row to view the log.

Clear Log Action - Execution log tab

Calculating ‘Success Only’ parameter example

Pascal

Clear Log Action - Calculated Clear Log Id example - Pascal
  Script

begin
 if DayOfTheMonth(Now)=1 then
    begin
     Result:='False';
    end
 else
    begin
     Result:='True';
    end;
end;

Python

Clear Log Action - Calculated Clear Log Id example - Python
  Script

import datetime;
if datetime.datetime.today().day==1:
   Result.Value='False'
else:
   Result.Value='True'

For more technologies supported by our ETL Software see Advanced ETL Processor Versions

Confused? Ask question on our ETL Forum

Posted on October 10, 2024 • 2 min read • 217 words
www.etl-tools.com About Support Pricing Cookies Policy Term Of Use Privacy Policy License