Skip to content

Commit

Permalink
Included features from issue klaudiosinani#56
Browse files Browse the repository at this point in the history
  • Loading branch information
tiehm committed Sep 15, 2018
1 parent 6face03 commit 2a7d123
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ const options = {
remind: {
badge: '**',
color: 'yellow',
label: 'reminder'
label: 'reminder',
done: (...msg) => {
// Do something with the logged message(s)
}
},
santa: {
badge: '🎅',
Expand Down
1 change: 1 addition & 0 deletions signale.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ class Signale {

_logger(type, ...messageObj) {
this._log(this._buildSignale(this._types[type], ...messageObj), this._types[type].stream);
if (this._types[type].done) this._types[type].done(...messageObj);
}

_padEnd(str, targetLength) {
Expand Down

0 comments on commit 2a7d123

Please sign in to comment.