<?php
/**
 * Matador / Admin Event Log
 *
 * @link        https://matadorjobs.com/
 * @since       3.0.0
 * @deprecated  3.9.0
 *
 * @package     Matador Jobs Board
 * @subpackage  Admin
 * @author      Matador Software LLC, Jeremy Scott, Paul Bearne
 * @copyright   (c) 2017-2024 Matador Holdings, Inc
 *
 * @license     http://opensource.org/licenses/gpl-3.0.php GNU Public License
 */

namespace matador;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

use matador\MatadorJobs\Core\Logger;

/**
 * Event Log
 *
 * @since 3.0.0
 * @deprecated 3.9.0
 */
final class Event_Log {

	/**
	 * Constructor
	 *
	 * @since 3.0.0
	 * @deprecated 3.9.0
	 *
	 * @param string $code    The log entry code/key. Should be unique to ensure easy code search.
	 * @param string $message The translated message for the log item.
	 * @param string $level   Optional. The error level. Accepts 'note', 'info', 'notice', 'warning', 'error', 'critical'. Defaults to 'notice'.
	 * @param array  $meta    Optional. Array of information about the action being logged.
	 */
	public function __construct( string $code, string $message, string $level = 'notice', array $meta = [] ) {
		Logger::entry( $code, $message, $level, $meta );
	}
}