Skip to content
Snippets Groups Projects
Select Git revision
  • 64a0769a7fdd29c1e054a965a2a2051182b584d2
  • main default protected
  • v0.10
  • 0.10.6
  • 0.10.5
  • 0.10.4
  • 0.10.3
  • 0.10.2
  • 0.10.1
  • 0.10.0
  • 0.9.1
  • 0.9.0
12 results

wpinit

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;
    	}
    
    }