Closed k1tzu closed 7 years ago
Hello,
Tryed the exact same code (just adding var winston = require('winston')
at the top, I assume you did it too)
works on my configuration: nodejs: 6.10.0 ubuntu 16.04 kernel 4.4.0-72-generic systemd 229
I've ended up with a working solution:
const Journald = require( 'systemd-journald' );
const logger = new Journald( { syslog_identifier: "myprog" } );
logger.error("HELLO WORLD!");
Who knows what was wrong with that one - maybe 3.x kernel or older systemd. I saw no debug/error messages from winston also.
I see message in the console, but I see nothing in the journald. Arch Linux 3.14.79+ aarch64