abuse-reporter/boot/init.php

15 lines
588 B
PHP
Raw Normal View History

2020-12-06 17:58:41 +00:00
<?php
2020-12-06 18:01:41 +00:00
// 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)
2020-12-06 17:58:41 +00:00
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);