<?php
if (!defined('ABSPATH') && !defined('MCDATAPATH')) exit;

if (!class_exists('MCProtectLoggerFS_V636')) :
class MCProtectLoggerFS_V636 {
	public $logFile;

	function __construct($filename) {
		$this->logFile = $filename;
	}

	public function log($data) {
		$_data = serialize($data);
		$str = "bvlogbvlogbvlog" . ":";
		$str .= strlen($_data) . ":" . $_data;
		// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- logging required
		error_log($str, 3, $this->logFile);
	}
}
endif;