Request Demo

Node.js Winston

To learn how more about how to get started working with Winston, check out this guide we put together.


You must provide the following four variables when creating a Coralogix logger instance.

Private Key – A unique ID that represents your company, this Id will be sent to your mail once you register to Coralogix.

Application Name – The name of your environment, for example, a company named “SuperData” would probably insert the “SuperData” string parameter or if they want to debug their test environment they might insert the “SuperData– Test”.

SubSystem Name – Your application probably has multiple components, for example: Backend servers, Middleware, Frontend servers etc. in order to help you examine the data you need, inserting the subsystem parameter is vital.

For more information on how to setup and use Winston head over to our guide as well as the Winston repository.

npm install –save coralogix-logger-winston

Winston usage example:

var winston = require("winston");
    var CoralogixWinston = require("coralogix-logger-winston");
    // global configuration for coralogix 
    var config = {
        privateKey: "75489423-f6f6-f683-017e-c77a6ba47cc2",
        applicationName: "YOUR APP NAME",
        subsystemName: "YOUR SUBSYSTEM",
    // configure winston to user coralogix transport 
        transports: [new CoralogixWinston.CoralogixTransport({
            category: "YOUR CATEGORY",
            handleExceptions: true
    // use winston"use winston to send your logs to coralogix");

Need help? We love to assist our customers, simply book your implementation session, and we will walk you through, step by step.

Start solving your production issues faster

Let's talk about how Coralogix can help you

Managed, scaled, and compliant monitoring, built for CI/CD

Get a demo

No credit card required

Get a personalized demo

Jump on a call with one of our experts and get a live personalized demonstration