Logger_DB
Will log into tx_formhandler_log. The logs can be accessed via the Formhandler backend module.
NOTE: The Logger_DB will log into the database and store the UID of the inserted record into the user session. You can access this UID later on using:
$data = $GLOBALS['TSFE']->fe_user->sesData;
$uid = $data['inserted_uid'];
NOTE: The Logger_DB will be added by the controller automatically, so you don't have to specify it. However this is not the case for the loggers setting of Interceptor_AntiSpamFormTime and Interceptor_IPBlocking!
Properties
.excludeFields
Comma separated list of field names to exclude from logging.
Data type
String / cObj
Version added
1.0.0
.pid
Specify where the log data is stored.
Data type
Integer - cObj
Default value
Current PID
Version added
1.0.0
.fields
Processing instructions for fields before they are logged.
Data type
Array
Version added
1.4.0
Example code
config { fields { interests.ifIsEmpty = none checkbox.ifIsEmpty = TEXT checkbox.ifIsEmpty.value = Lorem Ipsum email.nullIfEmpty = 1 } }
.fields.[form_field].ifIsEmpty
Define a default value if the user did not enter anything in the form field.
Data type
String | cObj
Version added
1.4.0