15 lines
588 B
PHP
15 lines
588 B
PHP
<?php
|
|
|
|
// Don't forget to change these paths! Right now, using the standard require (e.g. getting the current script path and vendor folder programmatically),
|
|
// is not working on my environment when called directly by F2B.
|
|
// Also, don't forget to create the logs folder and touch an empty app.log file. (I know lazyness on my part)
|
|
|
|
require("/root/scripts/abuse-reporter/vendor/autoload.php");
|
|
|
|
|
|
use Monolog\Logger;
|
|
use Monolog\Handler\StreamHandler;
|
|
|
|
$logger = new Logger('default');
|
|
$logger->pushHandler(new StreamHandler("/root/scripts/abuse-reporter/logs/app.log"), Logger::INFO);
|