"use strict";var cov_nw750lze5=function(){var path="/Users/josh.burman/Projects/braid/dist/server/logger.js";var hash="4cd76b8df084c9439c6a8b6447d57795c1ef4398";var Function=function(){}.constructor;var global=new Function("return this")();var gcv="__coverage__";var coverageData={path:"/Users/josh.burman/Projects/braid/dist/server/logger.js",statementMap:{"0":{start:{line:2,column:52},end:{line:2,column:70}},"1":{start:{line:3,column:11},end:{line:3,column:26}},"2":{start:{line:5,column:14},end:{line:5,column:23}},"3":{start:{line:6,column:17},end:{line:6,column:49}},"4":{start:{line:6,column:24},end:{line:6,column:48}},"5":{start:{line:7,column:17},end:{line:16,column:2}},"6":{start:{line:17,column:18},end:{line:26,column:2}},"7":{start:{line:27,column:0},end:{line:30,column:2}}},fnMap:{"0":{name:"(anonymous_0)",decl:{start:{line:6,column:17},end:{line:6,column:18}},loc:{start:{line:6,column:24},end:{line:6,column:48}},line:6}},branchMap:{},s:{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0},f:{"0":0},b:{},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"};var coverage=global[gcv]||(global[gcv]={});if(coverage[path]&&coverage[path].hash===hash){return coverage[path];}coverageData.hash=hash;return coverage[path]=coverageData;}();var{winston,transports,createLogger,format}=(cov_nw750lze5.s[0]++,require('winston'));var path=(cov_nw750lze5.s[1]++,require('path'));// Set this to whatever, by default the path of the script.
var logPath=(cov_nw750lze5.s[2]++,'./logs/');cov_nw750lze5.s[3]++;const tsFormat=()=>{cov_nw750lze5.f[0]++;cov_nw750lze5.s[4]++;return new Date().toISOString();};const errorLog=(cov_nw750lze5.s[5]++,createLogger({format:format.combine(format.timestamp(),format.json()),transports:[new transports.File({filename:path.join(logPath,'errors.log'),timestamp:tsFormat,level:'debug'})]}));const accessLog=(cov_nw750lze5.s[6]++,createLogger({format:format.combine(format.timestamp(),format.json()),transports:[new transports.File({filename:path.join(logPath,'access.log'),timestamp:tsFormat,level:'info'})]}));cov_nw750lze5.s[7]++;module.exports={errorLog:errorLog,accessLog:accessLog};//# sourceMappingURL=logger.js.map