LoginSignup
0
0

More than 1 year has passed since last update.

App Service for Linux の PHP 8.0 で ログストリームに PHP からログ出力してみた

Posted at

WordPress が動いている App Service for Linux の PHP 8.0 で、どうやったら WP-Cron のメッセージ出力をログストリームに出せるのか試してみました。意外と簡単にメッセージ出力する事ができるんですね。

WP-Cron のサンプルコード

php
error_log("[WP Cron]: Error message", 0, "php://stderr");

wp-cron-php-sample.png

AppService のログストリーム

wp-cron-error-message.png

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0