Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including coralogix-logger-winston with all npm packages installed. Try it out:

var coralogixLoggerWinston = require("coralogix-logger-winston")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

coralogix-logger-winston v1.0.11

Winston transport for sending logs to coralogix

npm version


Use coralogix-logger-winston to easily add a transport to winston inorder to send your logs to Coralogix's log analytics platform.


npm install --save coralogix-logger-winston

Javascript example (see ts example below)

var winston = require("winston");
var CoralogixWinston = require("coralogix-logger-winston");

// global configuration for coralogix
var config = {
    privateKey: "9626c7dd-8174-5015-a3fe-5572e042b6d9",
    applicationName: "YOUR APP NAME",
    subsystemName: "YOUR SUBSYSTEM",


// configure winston to user coralogix transport
    transports: [new CoralogixWinston.CoralogixTransport({
        category: "YOUR CATEGORY"

// use winston"use winston to send your logs to coralogix");

Typescript example

import * as winston from "winston";
import {CoralogixTransport} from "coralogix-logger-winston";

// global configuration for private key, application name, subsystem name 
const config = {
    privateKey: "YOUR PRIVATE KEY",
    applicationName: "YOUR APP NAME",
    subsystemName: "YOUR SUBSYSTEM"


    transports:[new CoralogixTransport({
})"use winston to send your logs to coralogix");
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free