Skip to content

Commit

Permalink
Added custom settings for Logger (icon, username)
Browse files Browse the repository at this point in the history
  • Loading branch information
manweCZ committed Dec 22, 2017
1 parent c01257f commit 8932f5a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/BiteIT/TracySlackLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,39 @@ public function __construct($webhookURL)
$this->webhookURL = $webhookURL;
}

/**
* @param $levels
* @return $this
*/
public function setReportingLevels($levels){
$this->reportedPriorities = (array) $levels;
return $this;
}

/**
* @param $iconURL
* @return $this
*/
public function setIconURL($iconURL){
$this->iconEmoji = null;
$this->iconURL = $iconURL;
return $this;
}

/**
* @param $emoji
* @return $this
*/
public function setIconEmoji($emoji){
$this->iconEmoji = $emoji;
$this->iconURL = null;
return $this;
}

/**
* @param $username
* @return $this
*/
public function setUsername($username){
$this->username = $username;
return $this;
Expand Down

0 comments on commit 8932f5a

Please sign in to comment.