1.1.0 • Published 8 years ago

coralogix-winston v1.1.0

Weekly downloads
35
License
ISC
Repository
-
Last release
8 years ago

This package lets you connect your nodeJS applications to Coralogix's log analytics platform.

Coralogix Winston Transport

For more information on how to setup and use winston head over to the winston repository.

Installation

npm install coralogix-winston --save

Usage

var winston = require('winston');
var CoralogixWinston = require('coralogix-winston');
var hostname = require('os').hostname();


var winstonLogger = new (winston.Logger)({
  transports: [
    new (CoralogixWinston)({
      privateKey: '00000000-0000-0000-0000-000000000000', // your private key you received when signing up
      applicationName: 'ACME Website',
      subsystemName: 'WebAPI',
      computerName: hostname, // optional
      level: 'debug' // winston log level
    })
  ]
});

// use winston regularly
winstonLogger.debug('This is a debug message');
// send Coralogix optional data for better learning and querying.
// these reserved word parameters will not be part of the message text.
winstonLogger.debug('A user has signed in', {
  'class': 'UserManager',
  'method': 'HandleSignin',
  'category': 'Security',
  'IPAddress': '1.1.1.1',
  'threadId': '123-a'
});
1.1.0

8 years ago

1.0.22

8 years ago

1.0.21

8 years ago

1.0.20

8 years ago

1.0.19

8 years ago

1.0.18

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago