# borderless/trunk/includes/library/inc/Logger.php

Borderless – Addons and Templates for Elementor, version trunk. 37 lines.

- Page: https://pluginprobe.com/plugins/borderless/trunk/code/includes/library/inc/Logger.php
- Raw: https://pluginprobe.com/plugins/borderless/trunk/raw/includes/library/inc/Logger.php
- Modified: 2022-11-12T14:29:48+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/borderless/trunk/code/includes/library/inc/Logger.php#L10-L20`.

```php
<?php

namespace LIBRARY;

class Logger extends \AwesomeMotive\WPContentImporter2\WPImporterLoggerCLI {

	public $error_output = '';

	public function log( $level, $message, array $context = array() ) {

		$this->error_output( $level, $message, $context = array() );

		if ( $this->level_to_numeric( $level ) < $this->level_to_numeric( $this->min_level ) ) {
			return;
		}

		printf(
			'[%s] %s' . PHP_EOL,
			strtoupper( $level ),
			$message
		);
	}


	public function error_output( $level, $message, array $context = array() ) {
		if ( $this->level_to_numeric( $level ) < $this->level_to_numeric( 'error' ) ) {
			return;
		}

		$this->error_output .= sprintf(
			'[%s] %s<br>',
			strtoupper( $level ),
			$message
		);
	}
}

```
