mirror of
https://github.com/djav1985/v-wordpress-plugin-updater.git
synced 2025-08-17 18:11:17 +08:00
Update log file path
This commit is contained in:
parent
c701aa1bb4
commit
2d6418eb69
2 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ class ErrorHandler // @phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamesp
|
|||
*/
|
||||
public static function logMessage(string $message, string $type = 'error'): void
|
||||
{
|
||||
$logFile = __DIR__ . '/../storage/logs/php_app.log';
|
||||
$logFile = __DIR__ . '/../../storage/logs/php_app.log';
|
||||
$timestamp = date("Y-m-d H:i:s");
|
||||
$logMessage = "[$timestamp] [$type]: $message\n";
|
||||
error_log($logMessage, 3, $logFile);
|
||||
|
|
0
update-api/storage/logs/php_app.log
Normal file
0
update-api/storage/logs/php_app.log
Normal file
Loading…
Add table
Add a link
Reference in a new issue