<?php
/**
 * Log writer interface.
 *
 * @package Awesomemotive\Rewardswp\Interfaces
 * @since 1.1.0
 */

namespace Awesomemotive\Rewardswp\Interfaces;

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

/**
 * Defines how log messages are written to storage.
 *
 * @since 1.1.0
 */
interface LogWriterInterface {
	/**
	 * Write a log entry.
	 *
	 * @since 1.1.0
	 *
	 * @param string $level   Log level.
	 * @param string $message Log message.
	 * @param array  $context Contextual data.
	 */
	public function write( string $level, string $message, array $context = [] ): void;
}
