Example

Let’s say that we want to add a custom log message that records the visitor’s IP address as some point in the PHP script. After including the complete custom_log() elsewhere in the script, call it like so: