THIS REPOSITORY IS INACTIVE. PLEASE USE datalust/pino-seq
A stream to send Pino events to Seq. Tested with Node.js versions 4.2.2 and up.
node foo | pino-seq --apiKey <key> --serverUrl http://localhost:5341
Use the createStream()
method to create a Pino stream configuration, passing serverUrl
, apiKey
and batching parameters.
let pino = require('pino');
let pinoToSeq = require('pino-seq');
let stream = pinoToSeq.createStream({serverUrl: "http://localhost:5341"});
let logger = pino({name: "pino-seq example"}, stream);
logger.info("Hello Seq, from Pino");
let frLogger = logger.child({lang: "fr"});
frLogger.warn("au reviour");
See the Pino API for how to use the logger