chore: Implement logger with winston library

This commit is contained in:
Faruk AYDIN
2021-10-04 18:01:14 +02:00
committed by Ali BARIN
parent a62d5369d4
commit 7a675e6c79
8 changed files with 254 additions and 65 deletions

View File

@@ -0,0 +1,14 @@
import * as dotenv from 'dotenv';
dotenv.config();
type AppConfig = {
port: string,
appEnv: string,
}
const appConfig: AppConfig = {
port: process.env.PORT || '3000',
appEnv: process.env.APP_ENV || 'development',
}
export default appConfig;