Skip to content

Commit

Permalink
🚚 Renamed LOGS_TO_FILE to LOG_TO_FILE
Browse files Browse the repository at this point in the history
  • Loading branch information
tjarbo committed Jan 6, 2022
1 parent 125dcbf commit b6bb007
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/configuration/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const envVarsSchema = object({
JWT_EXPIRESIN: string()
.default('10m')
.description('Defines how long a user will be logged in'),
LOGS_TO_FILE: boolean()
LOG_TO_FILE: boolean()
.default(false)
.description('Defines whether logs are written to filesystem or not'),
MONGO_HOST: string()
Expand Down Expand Up @@ -91,7 +91,7 @@ export const config = {
secret: envVars.JWT_SECRET,
expiresIn: envVars.JWT_EXPIRESIN,
},
logsToFile: envVars.LOGS_TO_FILE,
logToFile: envVars.LOG_TO_FILE,
mongo: {
host: envVars.MONGO_HOST,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/configuration/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ const configLogger = {

};

const logTyp = config.logsToFile ? 'all' : 'default';
const logTyp = config.logToFile ? 'all' : 'default';
export const loggerFile = log4js.configure(configLogger).getLogger(logTyp);
export const loggerMiddleware = log4js.connectLogger(loggerFile, {level: 'auto'});

0 comments on commit b6bb007

Please sign in to comment.