#24 - Update all cron scripts to use application logging via the logApp functionClosed

----------

WAS:

Cron logging of last-run time

We should have a table that tracks when cron jobs last ran. This can be used as part of the debug to show if a cron script is running OK. This would be separate to any normal logging.

Milestone:
No milestone set
Assigned To: =^_^=Marcus
Created Date: 2025-01-09 10:37:38
Closed Date: 2025-02-04 09:25:15
Discussion Link:

Comments 2

[o_O] Johnny Commented on 2025-01-10 21:36:59

This has already been added as app_logs

logs table is the audit logs

auth_logs are for authentication

Table: app_logs

iHwH+7Topu6tldAAAAABJRU5ErkJggg==

Sample Data

P8AAAAASUVORK5CYII=

Function:

function logApp($category, $type, $details) {
    global $mysqli;

    mysqli_query($mysqli, "INSERT INTO app_logs SET app_log_category = '$category', app_log_type = '$type', app_log_details = '$details'");
}

 

[o_O] Marcus Commented on 2025-02-04 09:25:15

Fab, done.