Skip to main content

PHP

To collect logs by your PHP application, check the following:

Agent Update

It is available from PHP agent 2.3.2. For more information about update, see the following.

Checking the agent settings

Home > Select Project > Log > Log Setting

Select a project in the initial screen of the WhaTap monitoring service, and then select Log > Log Setting under Project Menu. Proceed with the process according to the instructions in the Check Agent Settings tab of the Start Log Monitoring section.

Checking the configuration file path

Check the configuration file path of the file for log monitoring. You can check it in the CLI environment or on the web.

Checking in the CLI environment

$ php -i | grep 'Scan'
Scan this dir for additional .ini files => /etc/php8.0.d
Note

If the path is "(None)," the configuration file path is /usr/whatap/php.

Checking on the web

If the PHP settings of the CLI and Apache environments are different, check the results of the phpinfo() function on the web.

Entering the command

Log monitoring starts when you enter the command including the configuration file path.

export LOGFILES=/some/path/file1,/some/other/file2
echo "whatap.logsink_enabled=true" | sudo tee -a [configuration file path]/whatap.ini
echo "whatap.logsink.files=$LOGFILES" | sudo tee -a [configuration file path]/whatap.ini

Enabling the log monitoring

Home > Select Project > Log > Log Setting

You can enable or disable the WhaTap log monitoring with the toggle button in the Activate log monitoring tab of the Starting the log monitoring section.

Starting the log monitoring

  • If you turn on Icon, the log monitoring is enabled. You can try for free for 15 days from the activation date.
  • If you turn off Icon, the log monitoring is disabled. Logs are no longer saved.
Note

Role

After agent installation, you can enable the log monitoring settings only when you have the edit permission on the project. For more information about the roles, see the following.