# wpremote/6.76/protect/logger.php

The WP Remote WordPress Plugin, version 6.76. 26 lines.

- Page: https://pluginprobe.com/plugins/wpremote/6.76/code/protect/logger.php
- Raw: https://pluginprobe.com/plugins/wpremote/6.76/raw/protect/logger.php
- Modified: 2026-09-17T11:43:22+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/wpremote/6.76/code/protect/logger.php#L10-L20`.

```php
<?php
if (!defined('ABSPATH') && !defined('MCDATAPATH')) exit;

if (!class_exists('WPRProtectLogger_V676')) :
require_once dirname( __FILE__ ) . '/logger/fs.php';
require_once dirname( __FILE__ ) . '/logger/db.php';

class WPRProtectLogger_V676 {
	private $log_destination;

	const TYPE_FS = 0;
	const TYPE_DB = 1;

	function __construct($name, $type = WPRProtectLogger_V676::TYPE_DB) {
		if ($type == WPRProtectLogger_V676::TYPE_FS) {
			$this->log_destination = new WPRProtectLoggerFS_V676($name);
		} else {
			$this->log_destination = new WPRProtectLoggerDB_V676($name);
		}
	}

	public function log($data) {
		$this->log_destination->log($data);
	}
}
endif;
```
