DbApiLogger
class DbApiLogger (View source)
Methods
No description
No description
Delete API log rows older than the given number of days. The cutoff is computed in PHP (UTC) so the comparison is portable across MySQL/PostgreSQL/SQLite; created_at is written by the DB in UTC (SQLite always, and the common UTC-configured MySQL/PostgreSQL deployment).
No description
No description
No description
No description
Details
__construct($db)
No description
void
doLog($msg, $priority)
No description
void
pruneOlderThan(int $days)
Delete API log rows older than the given number of days. The cutoff is computed in PHP (UTC) so the comparison is portable across MySQL/PostgreSQL/SQLite; created_at is written by the DB in UTC (SQLite always, and the common UTC-configured MySQL/PostgreSQL deployment).
array
getDistinctEventTypes()
No description
array
getDistinctUsers()
No description
int
countFilteredLogs(array $filters)
No description
array
getFilteredLogs(array $filters, int $limit, int $offset)
No description