Skip to content

Setting "ident" does not workΒ #42

@ceving

Description

@ceving

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions