PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 5.3.1
Defender Security – Malware Scanner, Login Security & Firewall v5.3.1
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
defender-security / src / component / logger / rotation-logger-interface.php

rotation-logger-interface.php in Defender Security – Malware Scanner, Login Security & Firewall 5.3.1, at src/component/logger/rotation-logger-interface.php

30 lines 772 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The interface for log rotation class.
4 *
5 * @package WP_Defender\Component\Logger
6 */
7
8 namespace WP_Defender\Component\Logger;
9
10 interface Rotation_Logger_Interface {
11
12 /**
13 * Generate a new filename with date suffix.
14 *
15 * @param string $filename Filename which requires date suffix.
16 *
17 * @return string Formatted date suffixed file name.
18 */
19 public function generate_file_name( $filename );
20
21 /**
22 * Purge logs whose modified time exceeded the threshold limit.
23 *
24 * @param string $directory_path Pathname of the directory.
25 * @param int $count A period as integer value.
26 * @param string $unit A standard datetime relative format unit, like days or months.
27 */
28 public function purge_old_log( $directory_path, $count, $unit );
29 }
30