Compare View

switch
from
...
to
 
Commits (3)

Changes

Showing 3 changed files Side-by-side Diff

... ... @@ -8,7 +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 = (process.env.KOMODO_LOG_FILENAME || 'log') + '.';
  12 +
  13 +const LOG_LABEL = process.env.KOMODO_LOG_LABEL;
12 14  
13 15 // const processTitle = process.title;
14 16  
... ... @@ -26,7 +28,7 @@ const logger = winston.createLogger({
26 28 format: winston.format.combine(
27 29 winston.format.metadata(),
28 30 winston.format.timestamp({ format: 'YYYY-MM-DD HH:mm:ss.SSS' }),
29   - winston.format.label({ label: `${process.title}[${PID}]`, message: false }),
  31 + winston.format.label({ label: `${LOG_LABEL || process.title}[${PID}]`, message: false }),
30 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()),
31 33 )
32 34 }),
... ... @@ -38,7 +40,7 @@ const logger = winston.createLogger({
38 40  
39 41 format: winston.format.combine(
40 42 winston.format.metadata(),
41   - winston.format.label({ label: `${process.title}[${PID}]`, message: false }),
  43 + winston.format.label({ label: `${LOG_LABEL || process.title}[${PID}]`, message: false }),
42 44 winston.format.timestamp({ format: 'YYYY-MM-DD HH:mm:ss.SSS' }),
43 45 winston.format.json(),
44 46 )
1 1 {
2 2 "name": "komodo-sdk",
3   - "version": "1.37.2",
  3 + "version": "1.37.3",
4 4 "lockfileVersion": 1,
5 5 "requires": true,
6 6 "dependencies": {
1 1 {
2 2 "name": "komodo-sdk",
3   - "version": "1.37.2",
  3 + "version": "1.37.3",
4 4 "description": "SDK for Komodo",
5 5 "main": "index.js",
6 6 "scripts": {