Now setting NODE_ENV to 'production' if not defined
Fixed logging logic. Fixed logger stream error message. Fixed warning color.