: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
if (!defined('ABSPATH') && !defined('MCDATAPATH')) exit;
if (!class_exists('BVProtectLogger_V565')) :
require_once dirname( __FILE__ ) . '/logger/fs.php';
require_once dirname( __FILE__ ) . '/logger/db.php';
class BVProtectLogger_V565 {
private $log_destination;
function __construct($name, $type = BVProtectLogger_V565::TYPE_DB) {
if ($type == BVProtectLogger_V565::TYPE_FS) {
$this->log_destination = new BVProtectLoggerFS_V565($name);
$this->log_destination = new BVProtectLoggerDB_V565($name);
public function log($data) {
$this->log_destination->log($data);