Skip to content

Commit

Permalink
Merge pull request #14 from picksitquick/add-log
Browse files Browse the repository at this point in the history
Adding logging configs
  • Loading branch information
aprajshekhar authored Mar 14, 2024
2 parents a7ba317 + 044ec21 commit cd5faf6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gamedoora-gateway.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ After=syslog.target gamedoora-config-server.service
User=gamedoora
ExecStart=/opt/gamedoora/gamedoora-gateway.jar
SuccessExitStatus=143
Environment="CONFIG_SERVER=http://localhost:8888"
Environment="CONFIG_SERVER=http://localhost:8888 LOG_PATH=/var/log/gamedoora"
[Install]
WantedBy=multi-user.target
6 changes: 5 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
server.port=8000
spring.application.name=gateway
spring.config.import=optional:configserver:${CONFIG_SERVER}
spring.config.import=optional:configserver:${CONFIG_SERVER}
logging.file.name=${LOG_PATH}/gateway.log
logging.pattern.file= %d{yyyy-MMM-dd HH:mm:ss.SSS} %-5level [%thread] %logger{15} - %msg%n
logging.pattern.console= %d{yyyy-MMM-dd HH:mm:ss.SSS} %-5level [%thread] %logger{15} - %msg%n
logging.level.com.gamedoora=DEBUG

0 comments on commit cd5faf6

Please sign in to comment.