Primer commit del sistema separado falta mejorar mucho
This commit is contained in:
10
Sistema_discord/logger.php
Executable file
10
Sistema_discord/logger.php
Executable file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
// Función de depuración personalizada
|
||||
if (!function_exists('custom_log')) {
|
||||
function custom_log($message) {
|
||||
$logFile = __DIR__ . '/../logs/custom_debug.log'; // Adjust path as needed
|
||||
$timestamp = date('Y-m-d H:i:s');
|
||||
file_put_contents('php://stderr', "[$timestamp] $message\n", FILE_APPEND);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user