refactored log.js to be written as one function, to have the logging functions be more DRY, and to use the correct prefix for a file.
refactored log.js to be written as one function, to have the logging functions be more DRY, and to use the correct prefix for a file.

saikiran7949/MakerNode,IntelOpenDesign/MakerNode,IntelOpenDesign/MakerNode,JulianVolodia/MakerNode,JulianVolodia/MakerNode,saikiran7949/MakerNode,JulianVolodia/MakerNode,saikiran7949/MakerNode