pinojs / pino

🌲 super fast, all natural json logger
http://getpino.io
MIT License
14.3k stars 878 forks source link

Can pino support to filter logging data #1765

Open jayprakash941 opened 1 year ago

jayprakash941 commented 1 year ago

I want to filter out some log which have specific string given as below. Ex: 1. "Warning: this Warning".

  1. "DeprecationWarning: this DeprecationWarning'
  2. "[ioredis] Unhandled error event: Error: All sentinels are unreachable."

logger.error(Log entry at fist); logger.error('[ioredis] Unhandled error event: Error: All sentinels are unreachable. Retrying from scratch after');

Also how i can set bufferSize as the option is not given in library

function buildStream (filename, workerData, workerOpts) { const stream = new ThreadStream({ filename, workerData, workerOpts })

jsumners commented 1 year ago

Please try to reframe your question. It is not at all clear what you are asking.