Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
style(config): sort log stream obj values alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Nov 16, 2022
1 parent 1a36329 commit 2a6e5dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ async function getConfig() {

// Rotation options: https://github.com/rogerc/file-stream-rotator/#options
config.fastifyInit.logger.stream = rotatingLogStream.getStream({
audit_file: path.joinSafe(path.dirname(logFile), ".audit.json"),
date_format: env.LOG_ROTATION_DATE_FORMAT || "YYYY-MM-DD",
filename: logFile,
audit_file: path.joinSafe(path.dirname(logFile), ".audit.json"),
frequency: env.LOG_ROTATION_FREQUENCY || "daily",
max_logs: env.LOG_ROTATION_MAX_LOGS,
size: env.LOG_ROTATION_MAX_SIZE,
Expand Down

0 comments on commit 2a6e5dc

Please sign in to comment.