akeeba/release-system

Option to control logging

Closed this issue · 0 comments

Log management

Component level option “Log downloads”, default Yes.

When set to No there will be nothing recorded in the logs table, the downloads graph will be disabled, and a message will appear on the logs page indicating logging is disabled.

See

// Log the download
/** @var LogTable $log */
$log = $model->getTable('Log');
$log->save([
'item_id' => $id,
'authorized' => 1,
]
);

Hit counter

Component level option “Hit counting”, default Yes.

When set to No, the item's hits will not be updated, see

$item->save([
'hits' => ++$item->hits,
]);