Skip to content

Implements an error log viewer.#603

Merged
fho4abcd merged 1 commit intoABCD-DEVCOM:masterfrom
rogercgui:log-viewer
Mar 8, 2026
Merged

Implements an error log viewer.#603
fho4abcd merged 1 commit intoABCD-DEVCOM:masterfrom
rogercgui:log-viewer

Conversation

@rogercgui
Copy link
Copy Markdown
Member

This viewer allows ABCD operators who do not have direct access to the server to view possible execution errors.

Full implementation of this viewer requires the inclusion of the block below in config.php. Error logs are stored in the bases/log folder.

// Sets the path to ABCD's own log folder.
// Assuming that $db_path is already defined as the path to 'bases/'
$log_folder = $db_path . "log/";

// Create the folder if it does not exist
if (!is_dir($log_folder)) {
	mkdir($log_folder, 0777, true);
}

// Sets the PHP error log file
$php_error_log = $log_folder . "php_error.log";

// Forces PHP to log errors to this file.
ini_set('log_errors', 1);
ini_set('error_log', $php_error_log);

This viewer allows ABCD operators who do not have direct access to the server to view possible execution errors.
@fho4abcd fho4abcd merged commit f4ba428 into ABCD-DEVCOM:master Mar 8, 2026
@rogercgui rogercgui deleted the log-viewer branch March 24, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants