Log file 2.4+ ​
📝 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"