Skip to content

Commit

Permalink
change log format to replace line feeds with carriage returns
Browse files Browse the repository at this point in the history
  • Loading branch information
svonworl committed Mar 7, 2024
1 parent 6aab06e commit 4c3a7e6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions templates/web.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ logging:
- type: console
# this the default dropwizard (logstash) logFormat for reference
#logFormat: "%-5p [%d{ISO8601,UTC}] %c: %m%n%rEx"
# this is a logFormat that replaces new lines in messages with a →
# TODO: should do the same with exceptions, but I couldn't figure it out
logFormat: "%-5p [%d{ISO8601,UTC}] %c: %replace(%msg){'[\\n]','→'}%n%rEx"
# this is a logFormat that replaces new lines with carriage returns
logFormat: "%-5p [%d{ISO8601,UTC}] %c: %replace(%m){'\n','\r'}%n%replace(%rEx){'\n','\r'}"


database:
Expand Down

0 comments on commit 4c3a7e6

Please sign in to comment.