Compare View

switch
from
...
to
 
Commits (2)

Changes

Showing 3 changed files Side-by-side Diff

... ... @@ -8,9 +8,9 @@ require('winston-daily-rotate-file');
8 8 require('winston-circular-buffer');
9 9  
10 10 const logDirectory = process.cwd() + '/logs';
11   -const filenamePrefix = (process.env.KOMODO_LOG_FILENAME || 'log') + '.';
  11 +const filenamePrefix = (global.KOMODO_LOG_FILENAME || process.env.KOMODO_LOG_FILENAME || 'log') + '.';
12 12  
13   -const LOG_LABEL = process.env.KOMODO_LOG_LABEL;
  13 +// const LOG_LABEL = process.env.KOMODO_LOG_LABEL;
14 14  
15 15 // const processTitle = process.title;
16 16  
... ... @@ -28,7 +28,7 @@ const logger = winston.createLogger({
28 28 format: winston.format.combine(
29 29 winston.format.metadata(),
30 30 winston.format.timestamp({ format: 'YYYY-MM-DD HH:mm:ss.SSS' }),
31   - winston.format.label({ label: `${LOG_LABEL || process.title}[${PID}]`, message: false }),
  31 + winston.format.label({ label: `${global.KOMODO_LOG_LABEL || process.title}[${PID}]`, message: false }),
32 32 winston.format.printf((info) => `${process.stdout.isTTY ? info.timestamp : ''} ${info.label}: ${info.level}: ${info.message} ${info.metadata && Object.keys(info.metadata).length ? JSON.stringify(info.metadata) : ''}`.trim()),
33 33 )
34 34 }),
... ... @@ -40,7 +40,7 @@ const logger = winston.createLogger({
40 40  
41 41 format: winston.format.combine(
42 42 winston.format.metadata(),
43   - winston.format.label({ label: `${LOG_LABEL || process.title}[${PID}]`, message: false }),
  43 + winston.format.label({ label: `${global.KOMODO_LOG_LABEL || process.title}[${PID}]`, message: false }),
44 44 winston.format.timestamp({ format: 'YYYY-MM-DD HH:mm:ss.SSS' }),
45 45 winston.format.json(),
46 46 )
1 1 {
2 2 "name": "komodo-sdk",
3   - "version": "1.37.3",
  3 + "version": "1.37.4",
4 4 "lockfileVersion": 1,
5 5 "requires": true,
6 6 "dependencies": {
1 1 {
2 2 "name": "komodo-sdk",
3   - "version": "1.37.3",
  3 + "version": "1.37.4",
4 4 "description": "SDK for Komodo",
5 5 "main": "index.js",
6 6 "scripts": {