ovhemert / pino-papertrail

🌲 Load pino logs into Papertrail
MIT License
17 stars 12 forks source link

logging on papertrail not working #51

Closed phifa closed 2 years ago

phifa commented 3 years ago
import pinoms from "pino-multi-stream";
import pinoPapertrail from "pino-papertrail";

const papertrailStream = pinoPapertrail.createWriteStream({
  appname: "pino",
  host: "logsXXX.papertrailapp.com",
  port: "XXXXX",
});

const prettyStream = pinoms.prettyStream({
  dest: papertrailStream,
});

const lg = pinoms({
  streams: [{ stream: prettyStream }, { stream: process.stdout }],
});

export { lg };

I need help. I assume I am doing sth. wrong. I set up a papertrail account, created a log destination and added the host and port to my file, see the code. But there is no logging on papertrail. What am I missing? Thanks for pointing me in the right direction folks.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.