當前位置: 首頁>>代碼示例>>PHP>>正文


PHP AbstractProcessingHandler::__construct方法代碼示例

本文整理匯總了PHP中Monolog\Handler\AbstractProcessingHandler::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP AbstractProcessingHandler::__construct方法的具體用法?PHP AbstractProcessingHandler::__construct怎麽用?PHP AbstractProcessingHandler::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Monolog\Handler\AbstractProcessingHandler的用法示例。


在下文中一共展示了AbstractProcessingHandler::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * @param  string $slackTeam Slack team slug
  * @param  string $token     Slackbot token
  * @param  string $channel   Slack channel (encoded ID or name)
  * @param  int    $level     The minimum logging level at which this handler will be triggered
  * @param  bool   $bubble    Whether the messages that are handled can bubble up the stack or not
  */
 public function __construct($slackTeam, $token, $channel, $level = Logger::CRITICAL, $bubble = true)
 {
     parent::__construct($level, $bubble);
     $this->slackTeam = $slackTeam;
     $this->token = $token;
     $this->channel = $channel;
 }
開發者ID:naldz,項目名稱:cyberden,代碼行數:14,代碼來源:SlackbotHandler.php

示例2: __construct

 public function __construct(MessageSender $sender, SmsapiFormatterFactory $formatterFactory, SmsapiConfig $config)
 {
     parent::__construct($config->handlerLoggerLevel, $config->handlerBubble);
     $this->sender = $sender;
     $this->formatterFactory = $formatterFactory;
     $this->config = $config;
 }
開發者ID:smsapi,項目名稱:monolog-smsapi,代碼行數:7,代碼來源:SmsapiHandler.php

示例3: __construct

 /**
  * SlackWebhookHandler constructor.
  *
  * @param SlackConfig $slackConfig
  * @param MonologConfig $monologConfig
  *
  * @throws MissingExtensionException When the curl extension is not activated
  */
 public function __construct(SlackConfig $slackConfig, MonologConfig $monologConfig, Curl\Util $curlUtil)
 {
     parent::__construct($monologConfig->getLevel(), $monologConfig->doesBubble());
     $this->slackConfig = $slackConfig;
     $this->monologConfig = $monologConfig;
     $this->curlUtil = $curlUtil;
 }
開發者ID:Pageon,項目名稱:SlackWebhookMonolog,代碼行數:15,代碼來源:SlackWebhookHandler.php

示例4: __construct

 /**
  * @param string $name
  * @param int $level
  * @param bool $bubble
  */
 public function __construct($name, $level = Logger::DEBUG, $bubble = true)
 {
     parent::__construct($level, $bubble);
     $this->name = $name;
     $this->notifier = JoliNotif\NotifierFactory::create();
     $this->notification = new JoliNotif\Notification();
 }
開發者ID:kamilsk,項目名稱:common,代碼行數:12,代碼來源:DesktopNotificationHandler.php

示例5: __construct

 /**
  * {@inheritdoc}
  *
  * @param null $function The raising function, if not set the channel name is used.
  * @param null $action   The log action, if not set the level is used.
  */
 public function __construct($level = Logger::DEBUG, $bubble = true, $function = null, $action = null)
 {
     parent::__construct($level, $bubble);
     $this->function = $function;
     $this->action = $action;
     $this->adapter = new ContaoHandlerAdapter();
 }
開發者ID:bit3,項目名稱:contao-logger,代碼行數:13,代碼來源:ContaoHandler.php

示例6: __construct

 /**
  * @param int       $logName
  * @param bool|int  $level
  * @param bool|true $bubble
  */
 public function __construct($logName, $level = Logger::DEBUG, $bubble = true)
 {
     $this->logName = $logName;
     $log = get_option($this->logName);
     $this->logs = is_array($log) ? $log : array();
     parent::__construct($level, $bubble);
 }
開發者ID:panvagenas,項目名稱:wp-plugin-core,代碼行數:12,代碼來源:DBHandler.php

示例7: __construct

 public function __construct(OutputInterface $output = null, $bubble = true, array $verbosityLevelMap = array())
 {
     parent::__construct(Logger::DEBUG, $bubble);
     if ($verbosityLevelMap) {
         $this->verbosityLevelMap = $verbosityLevelMap;
     }
 }
開發者ID:ChristianBreitkreutz,項目名稱:sonar-php,代碼行數:7,代碼來源:PHPSquidSensor.php

示例8: __construct

 public function __construct($hooksurl, $channel, $username, $level = Logger::ERROR, $bubble = true)
 {
     parent::__construct($level, $bubble);
     $this->hooksurl = $hooksurl;
     $this->channel = $channel;
     $this->username = $username;
 }
開發者ID:pwnro,項目名稱:slackwebhandler,代碼行數:7,代碼來源:SlackWebHandler.php

示例9: __construct

 /**
  * @param string       $account_sid       Twilio api account sid
  * @param string       $auth_token        Twilio api access token
  * @param string|array $from_numbers      Phone number or array of numbers (one is selected randomly)
  *                                          the message will be sent from.
  * @param string|array $to_numbers        Phone number or array of numbers the message will be sent to
  * @param integer      $level             The minimum logging level at which this handler will be triggered
  * @param Boolean      $bubble            Whether the messages that are handled can bubble up the stack or not
  */
 public function __construct($account_sid, $auth_token, $from_numbers, $to_numbers, $level = Logger::CRITICAL, $bubble = true)
 {
     $this->twilio_client = new \Services_Twilio($account_sid, $auth_token);
     $this->to_numbers = (array) $to_numbers;
     $this->from_numbers = (array) $from_numbers;
     parent::__construct($level, $bubble);
 }
開發者ID:usf-it,項目名稱:usf-idm-common,代碼行數:16,代碼來源:TwilioHandler.php

示例10: __construct

 /**
  * $topic_arn is name of a topic that you have created either in the control panel or
  * using AmazonSNS->create_topic
  *
  * For the $snsClient pass a a ready SnsClient, depending ony your setup
  * More info http://docs.aws.amazon.com/aws-sdk-php/guide/latest/service-sns.html
  *
  * @param string $topicArn The name of the SNS topic to publish to
  * @param string $subject Used for email subscriptions to the topic
  * @param SnsClient $snsClient The Sns client
  * @param integer $level The minimum logging level at which this handler will be triggered
  * @param boolean $bubble Whether the messages that are handled can bubble up the stack or not
  */
 public function __construct($topicArn, $subject, SnsClient $snsClient, $level = Logger::DEBUG, $bubble = true)
 {
     parent::__construct($level, $bubble);
     $this->topicArn = $topicArn;
     $this->subject = $subject;
     $this->sns = $snsClient;
 }
開發者ID:CascadeEnergy,項目名稱:monolog-aws,代碼行數:20,代碼來源:SnsHandler.php

示例11: __construct

 public function __construct(EntityManager $em, TokenStorageInterface $tokenStorage, Request $request, $level = Logger::DEBUG, $bubble = true)
 {
     $this->em = $em;
     $this->tokenStorage = $tokenStorage;
     $this->request = $request;
     parent::__construct($level, $bubble);
 }
開發者ID:QuangDang212,項目名稱:roadiz,代碼行數:7,代碼來源:DoctrineHandler.php

示例12: __construct

 public function __construct($url = null, $apiParametersArray = array(), $logMessageKeyName = "message", $level = Logger::DEBUG, $bubble = true)
 {
     $this->apiURL = $url;
     $this->apiParametersArray = $apiParametersArray;
     $this->logMessageKeyName = $logMessageKeyName;
     parent::__construct($level, $bubble);
 }
開發者ID:paragdakle,項目名稱:monolog,代碼行數:7,代碼來源:HttpHandler.php

示例13: __construct

 /**
  * {@inheritDoc}
  *
  * @param string $appName
  * @param boolean $explodeArrays
  * @param string $transactionName
  */
 public function __construct($level = Logger::ERROR, $bubble = true, $appName = null, $explodeArrays = false, $transactionName = null)
 {
     parent::__construct($level, $bubble);
     $this->appName = $appName;
     $this->explodeArrays = $explodeArrays;
     $this->transactionName = $transactionName;
 }
開發者ID:saj696,項目名稱:pipe,代碼行數:14,代碼來源:NewRelicHandler.php

示例14: __construct

 /**
  *
  * @param integer $level
  *        	The minimum logging level at which this handler will be triggered
  * @param Boolean $bubble
  *        	Whether the messages that are handled can bubble up the stack or not
  */
 public function __construct($level = Logger::DEBUG, $bubble = true)
 {
     parent::__construct($level, $bubble);
     if (!function_exists('json_encode')) {
         throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s ChromePHPHandler');
     }
 }
開發者ID:sapwoo,項目名稱:portfolio,代碼行數:14,代碼來源:ChromePHPHandler.php

示例15: __construct

 /**
  * Construct
  *
  * @param  int $level
  * @param  bool $bubble
  * @throws MissingExtensionException
  */
 public function __construct($level = Logger::DEBUG, $bubble = true)
 {
     if (!function_exists('zend_monitor_custom_event')) {
         throw new MissingExtensionException('You must have Zend Server installed in order to use this handler');
     }
     parent::__construct($level, $bubble);
 }
開發者ID:TeamOfMalaysia,項目名稱:H,代碼行數:14,代碼來源:ZendMonitorHandler.php


注:本文中的Monolog\Handler\AbstractProcessingHandler::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。