-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bdd6990
commit 378401a
Showing
5 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
appstore-metadata-service/src/main/resources/config/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
spring.profiles.active[email protected]@ | ||
spring.jackson.default-property-inclusion=NON_NULL | ||
database.host=${JDBC_HOST:localhost} | ||
database.name=${JDBC_DATABASE_NAME:postgres} | ||
|
41 changes: 41 additions & 0 deletions
41
appstore-metadata-service/src/main/resources/logback-spring.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<configuration> | ||
<springProfile name="dev"> | ||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern> | ||
%d{dd-MM-yyyy HH:mm:ss.SSS} %magenta([%thread]) %highlight(%-5level) %logger{36}.%M - %msg%n | ||
</pattern> | ||
</encoder> | ||
</appender> | ||
<root level="INFO"> | ||
<appender-ref ref="STDOUT"/> | ||
</root> | ||
<logger name="com.lgi.appstore.metadata" level="DEBUG" additivity="false"> | ||
<appender-ref ref="STDOUT"/> | ||
</logger> | ||
</springProfile> | ||
<springProfile name="prod"> | ||
<appender name="jsonConsoleAppender" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder class="net.logstash.logback.encoder.LogstashEncoder"> | ||
<timestampPattern>yyyy-MM-dd'T'HH:mm:ss.SSSXXX</timestampPattern> | ||
<customFields>{ | ||
"app":"${APP_NAME:-not defined}", | ||
"app_version":"${APP_VERSION:-not defined}", | ||
"app_revision":"${APP_REVISION:-not defined}", | ||
"app_branch":"${APP_BRANCH:-not defined}", | ||
"stack":"${STACK_NAME:-not defined}" | ||
} | ||
</customFields> | ||
<fieldNames> | ||
<levelValue>[ignore]</levelValue> | ||
<version>[ignore]</version> | ||
<thread>thread</thread> | ||
<stackTrace>exception</stackTrace> | ||
</fieldNames> | ||
</encoder> | ||
</appender> | ||
<root level="INFO"> | ||
<appender-ref ref="jsonConsoleAppender"/> | ||
</root> | ||
</springProfile> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters