How to use the log function from bindings

Find comprehensive JavaScript bindings.log code examples handpicked from public code repositorys.

148
149
150
151
152
153
154
155
156
157
if (typeof message !== 'string') {
  throw new TypeError('Invalid argument');
}

let caller = new Caller();
return rclnodejs.log(
  this._name,
  severity,
  message,
  caller.functionName,
fork icon65
star icon248
watch icon27

+ 3 other calls in file

370
371
372
373
374
375
376
377
378
379
380
 *       client.close()
 *     })
 *   })
 * })
 */
exports.log = as.log


/**
 * @summary Enumertion of special TTL (time-to-live) values.
 *
fork icon75
star icon197
watch icon0

+ 13 other calls in file

234
235
236
237
238
239
240
241
242

  if (rc.syslog) {
    // add a hashtag based on the severity level
    msg = formatIf(rc.syslogHashTags, '#%s %s', [severity, msg], msg)
    // send the log to syslog 
    bindings.log(sev[severity], msg)

  }
}
fork icon10
star icon54
watch icon5

+ 25 other calls in file

175
176
177
178
179
180
181
182
183
184
  if (typeof (message) !== 'string') {
    throw new TypeError('Invalid argument');
  }

  let caller = new Caller();
  return rclnodejs.log(this._name, severity, message, caller.functionName, caller.lineNumber, caller.fileName);
}

/**
 * Get LoggingSeverity enum.
fork icon65
star icon1
watch icon5

+ 3 other calls in file

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)