Add HipChat notifier role.

This commit is contained in:
Simo Kinnunen
2014-01-30 00:06:03 +09:00
parent 07f611b361
commit 4cf3d242a5
7 changed files with 134 additions and 1 deletions

View File

@@ -106,6 +106,15 @@ Logger.Level = {
, FATAL: 6
}
Logger.LevelLabel = {
1: 'DBG'
, 2: 'VRB'
, 3: 'INF'
, 4: 'WRN'
, 5: 'ERR'
, 6: 'FTL'
}
Logger.globalIdentifier = '*'
Logger.createLogger = function(tag) {

View File

@@ -5,6 +5,7 @@ var uuid = require('node-uuid')
module.exports = function(wire) {
var wireutil = {
global: '*ALL'
, log: '*LOG'
, makePrivateChannel: function() {
return uuid.v4(null, new Buffer(16)).toString('base64')
}
@@ -63,6 +64,7 @@ module.exports = function(wire) {
, entry.tag
, entry.pid
, entry.message
, entry.identifier
)
return wireutil.envelope(wire.MessageType.DEVICE_LOG, message)