PluginProbe
404 Solution / 4.3.0
404 Solution v4.3.0
4.3.5 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.2.0 4.1.19 4.1.18 4.1.17 4.1.16 4.1.15 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.1.7 4.1.6 4.1.5 4.1.4 4.1.3 trunk 2.30.0 All 109 releases
404-solution / includes / logs / LogWriteInterface.php

LogWriteInterface.php in 404 Solution 4.3.0, at includes/logs/LogWriteInterface.php

50 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if (!defined('ABSPATH')) {
4 exit;
5 }
6
7 /**
8 * Write-side operations on the log subsystem: redirect-hit logging, queued
9 * batch flush, lookup-table population, and the static pipeline-trace
10 * decoder paired with the writer.
11 */
12 interface ABJ_404_Solution_LogWriteInterface {
13
14 /**
15 * @param ABJ_404_Solution_RedirectHitLogEntry $entry
16 * @return void
17 */
18 public function logRedirectHit(ABJ_404_Solution_RedirectHitLogEntry $entry): void;
19
20 /**
21 * @param array<string, mixed> $entry
22 * @return void
23 */
24 public function queueLogEntry(array $entry): void;
25
26 /** @return void */
27 public function flushLogQueue(): void;
28
29 /**
30 * @param string $valueToInsert
31 * @return int
32 */
33 public function insertLookupValueAndGetID($valueToInsert);
34
35 /**
36 * @param string $userName
37 * @return int
38 */
39 public function getLookupIDForUser($userName);
40
41 /** @return void */
42 public function correctDuplicateLookupValues(): void;
43
44 /**
45 * @param string|null $raw
46 * @return array<int, array{step: string, outcome: string, detail: string}>|null
47 */
48 public static function decompressPipelineTrace(?string $raw): ?array;
49 }
50