예제 #1
0
 /**
  * Constructor - initializes the filter.
  * @param array $config the configuration for this filter.
  */
 public function init(Configuration $config)
 {
     $this->levelMin = $config->get('levelMin', Level::trace(), function ($levelMin) {
         return $levelMin instanceof Level;
     });
     $this->levelMax = $config->get('levelMax', Level::fatal(), function ($levelMax) {
         return $levelMax instanceof Level;
     });
     $this->acceptOnMatch = $config->get('acceptOnMatch', true);
 }
예제 #2
0
 /**
  * Helper function to log a message at the trace log level.
  * @param string $message the message to log.
  * @param array  $extras  [optional] the array of extra variables to pass to this
  * single log entry. to this single log entry to this single log entry.
  * @return void
  */
 public function trace($message, $extras = array())
 {
     $this->log(Level::trace(), $message, $extras);
 }