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

namespace matador;

use matador\MatadorJobs\Core\Logger as Core_Logger;

/**
 * Activity Logger
 *
 * @since 3.0.0
 * @deprecated 3.9.0
 */
final class Logger {

	/**
	 * Add
	 *
	 * @since 3.0.0
	 * @deprecated 3.9.0
	 *
	 * @param string $level Optional. The error level. Accepts 'note', 'info', 'notice', 'warning', 'error', 'critical'. Defaults to 'notice'.
	 * @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.
	 *
	 * @return void
	 */
	public static function add( string $level = 'notice', string $code = 'logger-code', string $message = '' ): void {
		Core_Logger::entry( $code, $message, $level );
	}
}
