Skip to content

Latest commit

 

History

History
114 lines (94 loc) · 3.81 KB

TLDR.md

File metadata and controls

114 lines (94 loc) · 3.81 KB

Research

Articles

### Logging-as-a-Service (Third-Party) Providers

### Useful

Existing Modules

Other

Name of the Module

Obviously I would prefer to have the name log, but TJ has that: https://www.npmjs.com/package/log

process.env output

When we node then console.log(process.env); (in Apple Terminal) we get:

{ TERM_PROGRAM: 'Apple Terminal',
  TERM: 'xterm-256color',
  SHELL: '/bin/bash',
  TMPDIR: '/var/folders/kj/7xfhyhrf6sz5w4mr7s6c0000gn/T/',
  Apple_PubSub_Socket_Render: '/private/tmp/com.apple.launchd.yNZYD1S/Render',
  TERM_PROGRAM_VERSION: '342.1',
  OLDPWD: '/Users/me/code/halp',
  TERM_SESSION_ID: '8ED14D42-7323-405A-BC61-01F783F7CA56',
  USER: 'me',
  PATH: '/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin',
  LANG: 'en_GB.UTF-8',
  XPC_FLAGS: '0x0',
  XPC_SERVICE_NAME: '0',
  HOME: '/Users/n',
  SHLVL: '1',
  LOGNAME: 'me',
  _: '/usr/local/bin/node' }

running the same console.log() from iTerm yields:

{ TERM_PROGRAM: 'iTerm.app',
  TERM: 'xterm',
  SHELL: '/bin/bash',
  TMPDIR: '/var/folders/kj/7xfhyhrj6t5f6sz5w4mr7s6c0000gn/T/',
  Apple_PubSub_Socket_Render: '/private/tmp/com.apple.launchd.yNZYD1/Render',
  OLDPWD: '/Users/n/code/hapi-auth-jwt',
  USER: 'me',
  COMMAND_MODE: 'unix2003',
  SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.ccnWktOTO3/Listeners',
  __CF_USER_TEXT_ENCODING: '0x1F5:0x0:0x0',
  ES_HOST: '127.0.0.1',
  PATH: '/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin',
  PWD: '/Users/me/code/time',
  LANG: 'en_GB.UTF-8',
  ITERM_PROFILE: 'Default',
  XPC_FLAGS: '0x0',
  XPC_SERVICE_NAME: '0',
  SHLVL: '1',
  HOME: '/Users/n',
  COLORFGBG: '7;0',
  ITERM_SESSION_ID: 'w0t0x4',
  LOGNAME: 'me',
  ES_PORT: '9200',
  JWT_SECRET: 'NeverShareYourSecret',
  SECURITYSESSIONID: '186a5',
  _: '/usr/local/bin/node' }

As we can see, the output is different depending on which terminal application we use (i.e. *inconsisten) ... #interesting ...