-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
I have the following test program.
#! /usr/bin/node
'use strict';
const syslog = require('modern-syslog');
syslog.open ("myident",
syslog.LOG_PID | syslog.LOG_ODELAY,
syslog.LOG_LOCAL0);
syslog.log (syslog.LOG_INFO, "test myident " + Date.now());
syslog.close ();When I run it, I get the following line in my Syslog:
Aug 24 12:06:51 kallisto node[9478]: test myident 1661335611978
I was expecting the string "myident" instead of "node".
When I do the same from the Bash,
logger -i -t myident test myident $(date +%s)
it works fine:
Aug 24 12:14:06 kallisto myident[9630]: test myident 1661336046
keptt
Metadata
Metadata
Assignees
Labels
No labels