Tech Tip: Filtering commands in debug log
PRODUCT: 4D | VERSION: 19 | PLATFORM: Mac & Win
Published On: December 27, 2022
Debug logs can be useful for recording all command activity within a 4D app. However, there's also an option to allow or restrict certain commands if necessary. This can be done using SET DATABASE PARAMETER with the 1st argument Log command list. The 2nd argument contains a string of 4D command numbers which can either be positive or negative. Postive numbers means record only those specific commands while negative numbers mean exclude those specific commands. Take the examples below:
// Records only QUERY and QUERY SELECTION commands
SET DATABASE PARAMETER(Log command list;"277;341")
// Excludes QUERY and QUERY SELECTION commands
SET DATABASE PARAMETER(Log command list;"-277;-341")