logging
This commit is contained in:
parent
affba14f3c
commit
3d41bf7ad8
5
app.js
5
app.js
|
@ -7,13 +7,8 @@ const { Pool } = require('pg');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const moment = require('moment');
|
const moment = require('moment');
|
||||||
require('dotenv').config();
|
require('dotenv').config();
|
||||||
const fs = require('fs');
|
|
||||||
const log = require('node-file-logger');
|
const log = require('node-file-logger');
|
||||||
|
|
||||||
const outputLog = fs.createWriteStream('./outputLog.log');
|
|
||||||
const errorsLog = fs.createWriteStream('./errorsLog.log');
|
|
||||||
const consoler = new console.Console(outputLog, errorsLog);
|
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
const port = process.env.PORT;
|
const port = process.env.PORT;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue