API-14: Changing logging to winston (#4)
Jenkins Production Deployment

Co-authored-by: Patrick Müller <patrick@mueller-patrick.tech>
Reviewed-on: #4
Co-authored-by: Patrick Müller <patrick@plutodev.de>
Co-committed-by: Patrick Müller <patrick@plutodev.de>
This commit was merged in pull request #4.
This commit is contained in:
2021-08-20 12:10:18 +00:00
parent 7265f92486
commit 915c2e7917
12 changed files with 2043 additions and 26 deletions
+3 -2
View File
@@ -5,11 +5,12 @@ import * as dotenv from 'dotenv';
import {partyPlanerRouter} from './src/models/partyplaner/PartyPlaner.router';
import {highlightMarkerRouter} from './src/models/twitch-highlight-marker/HighlightMarker.router';
import {dhbwServiceRouter} from './src/models/dhbw-service/DHBWService.router';
import logger from "./src/middleware/logger";
dotenv.config();
if (!process.env.PORT) {
console.log('No port');
logger.error('No port');
process.exit(1);
}
@@ -32,5 +33,5 @@ app.get('/', (req: express.Request, res: express.Response) => {
});
server.listen(port, () => {
console.log('Server listening on Port ' + port);
logger.info('Server listening on Port ' + port);
});