4000) { $out = substr($out, 0, 4000) . '...'; } return $out; } /** * @param string $line * @return bool */ public function writeLine(string $line): bool { $logger = abj_service('logging'); if (is_object($logger) && method_exists($logger, 'writeLineToDebugFile')) { $logger->writeLineToDebugFile($line); return true; } if (is_object($logger) && method_exists($logger, 'sanitizeLogLine')) { $line = $logger->sanitizeLogLine($line); } @file_put_contents(ABJ_404_Solution_FallbackStateDirectory::path() . 'abj404_debug_fallback.txt', $line . "\n", FILE_APPEND); return false; } }