Skip to content
Snippets Groups Projects
Select Git revision
  • 91e6800a6cccfe2c3cd542facc38cf8be473a06c
  • master default protected
  • feat/message-handling
  • feat/request-id
  • 1.13.2
  • 1.13.1
  • 1.13.0
  • 1.12.1
  • 1.12.0
  • 1.11.0
  • 1.11.0-beta2
  • 1.11.0-beta1
  • 1.10.2
  • 1.10.1
  • 1.10.0
  • 1.9.0
  • 1.8.0
  • 1.7.4
  • 1.7.3
  • 1.7.2
  • 1.7.1
  • 1.7.0
  • 1.6.2
  • 1.6.2-beta2
24 results

Settings.php

Blame
  • Settings.php 546 B
    <?php
    
    namespace WPDesk\Logger;
    
    use Psr\Log\LogLevel;
    
    final class Settings {
    
    	/** @var string */
    	public $level = LogLevel::DEBUG;
    
    	/** @var bool */
    	public $use_wc_log = true;
    
    	/** @var bool */
    	public $use_wp_log = true;
    
    	/**
    	 * @param string $level
    	 * @param bool   $use_wc_log
    	 * @param bool   $use_wp_log
    	 */
    	public function __construct( string $level = LogLevel::DEBUG, bool $use_wc_log = true, bool $use_wp_log = true ) {
    		$this->level      = $level;
    		$this->use_wc_log = $use_wc_log;
    		$this->use_wp_log = $use_wp_log;
    	}
    
    }