# defender-security/6.2.3/src/component/logger/rotation-logger-interface.php

Defender Security – Malware Scanner, Login Security &amp; Firewall, version 6.2.3. 30 lines.

- Page: https://pluginprobe.com/plugins/defender-security/6.2.3/code/src/component/logger/rotation-logger-interface.php
- Raw: https://pluginprobe.com/plugins/defender-security/6.2.3/raw/src/component/logger/rotation-logger-interface.php
- Modified: 2024-07-15T18:05:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/defender-security/6.2.3/code/src/component/logger/rotation-logger-interface.php#L10-L20`.

```php
<?php
/**
 * The interface for log rotation class.
 *
 * @package    WP_Defender\Component\Logger
 */

namespace WP_Defender\Component\Logger;

interface Rotation_Logger_Interface {

	/**
	 * Generate a new filename with date suffix.
	 *
	 * @param  string $filename  Filename which requires date suffix.
	 *
	 * @return string Formatted date suffixed file name.
	 */
	public function generate_file_name( $filename );

	/**
	 * Purge logs whose modified time exceeded the threshold limit.
	 *
	 * @param  string $directory_path  Pathname of the directory.
	 * @param  int    $count  A period as integer value.
	 * @param  string $unit  A standard datetime relative format unit, like days or months.
	 */
	public function purge_old_log( $directory_path, $count, $unit );
}

```
