Skip to content

Log file 2.4.0+ ​

📝 Name: logFile · 🖥️ Option: --log-file

A file where to log crawling results.

INFO

Implicitly enables logging, if this configuration option is set.

Example ​

Provide the path to a local file where to log result messages. Make sure to either provide an absolute path or a path relative to the working directory.

bash
./cache-warmup.phar --log-file "cache-warmup.log"
json
{
    "logFile": "cache-warmup.log"
}
php
use EliasHaeussler\CacheWarmup;

return static function (CacheWarmup\Config\CacheWarmupConfig $config) {
    $config->setLogFile('cache-warmup.log');

    return $config;
};
yaml
logFile: cache-warmup.log
bash
CACHE_WARMUP_LOG_FILE="cache-warmup.log"

Released under the GNU General Public License 3.0 (or later)