Skip to content

Commit

Permalink
Merge pull request #148 from dockstore/reformat_hibernate_stats_logger
Browse files Browse the repository at this point in the history
add custom logger format for hibernate session metrics
  • Loading branch information
Ldcabansay authored Jun 18, 2020
2 parents 0101447 + cccd3ae commit 5161708
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions templates/web.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ httpClient:
retries: 0

logging:
loggers:
#customize logging for hibernate session metrics
"org.hibernate.engine.internal.StatisticalLoggingSessionEventListener":
# false = don't create new log event, but override existing
additive: false
appenders:
- type: console
logFormat: "%-5p [%d{ISO8601,UTC}] %c\t %replace(%replace(%msg){'[\\n{};]',''}){'([A-Za-z]) ([A-Za-z])','$1_$2'}%n%rEx"
#logging for other dropwizard things
appenders:
- type: console
# this the default dropwizard (logstash) logFormat for reference
Expand Down

0 comments on commit 5161708

Please sign in to comment.