Skip to content

Commit

Permalink
Merge pull request #610 from AndreKurait/FixMultilineLogger
Browse files Browse the repository at this point in the history
Enhance matching in multilinePattern
  • Loading branch information
sumobrian authored Apr 25, 2024
2 parents d855554 + 0c6d19d commit 41bd736
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ export class MigrationServiceCore extends Stack {
// E.g. "[INFO ] 2024-12-31 23:59:59..."
// and "[ERROR] 2024-12-31 23:59:59..."
// and "2024-12-31 23:59:59..."
multilinePattern: "^(\\[[A-Z ]{1,5}\\] )?\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}",
// and "2024-12-31T23:59:59..."
multilinePattern: "^(\\[[A-Z ]{1,5}\\] )?\\d{4}-\\d{2}-\\d{2}[ T]\\d{2}:\\d{2}:\\d{2}",
// Defer buffering behavior to log4j2 for greater flexibility
mode: AwsLogDriverMode.BLOCKING,
}),
Expand Down

0 comments on commit 41bd736

Please sign in to comment.