-
Notifications
You must be signed in to change notification settings - Fork 6
feat: Switch to devx-logs
#1631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
29abd4b
8df1738
1106378
2e3471a
0b298b0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -118,11 +118,11 @@ lazy val common = project | |
| "org.tpolecat" %% "doobie-specs2" % doobieVersion % Test, | ||
| "org.tpolecat" %% "doobie-scalatest" % doobieVersion % Test, | ||
| "org.tpolecat" %% "doobie-h2" % doobieVersion % Test, | ||
| "com.gu" %% "mobile-logstash-encoder" % "1.1.8", | ||
| "com.gu" %% "simple-configuration-ssm" % simpleConfigurationVersion, | ||
| "org.postgresql" % "postgresql" % "42.7.7", | ||
| "ch.qos.logback" % "logback-core" % logbackVersion, | ||
| "ch.qos.logback" % "logback-classic" % logbackVersion, | ||
| "net.logstash.logback" % "logstash-logback-encoder" % "8.1" | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Required to produce JSON formatted logs, as required by fluentbit (via devx-logs). The latest version (9.0) requires Java 17+. We're currently using Java 11. |
||
| ), | ||
| fork := true, | ||
| startDynamoDBLocal := startDynamoDBLocal.dependsOn(Test / compile).value, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,17 +10,22 @@ | |
| <maxHistory>30</maxHistory> | ||
| </rollingPolicy> | ||
|
|
||
| <encoder class="com.gu.mobile.logback.MobileLogstashEncoder"> | ||
| <defaultAppName>notifications</defaultAppName> | ||
| <encoder> | ||
| <pattern>%date [%thread] %-5level {%mdc} %logger{36}:%L - %msg%n%xException{15}</pattern> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This format was copied from |
||
| </encoder> | ||
| </appender> | ||
|
|
||
| <appender name="ASYNCFILE" class="ch.qos.logback.classic.AsyncAppender"> | ||
| <appender-ref ref="FILE" /> | ||
| </appender> | ||
|
|
||
| <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
| <encoder class="net.logstash.logback.encoder.LogstashEncoder" /> | ||
| </appender> | ||
|
|
||
| <root level="INFO"> | ||
| <appender-ref ref="ASYNCFILE"/> | ||
|
jorgeazevedo marked this conversation as resolved.
|
||
| <appender-ref ref="STDOUT"/> | ||
| </root> | ||
|
|
||
| </configuration> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See the docs for a summary of these changes. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,14 +7,16 @@ deployments: | |
| parameters: | ||
| amiEncrypted: true | ||
| amiTags: | ||
| Recipe: mobile-java11-jammy-ARM | ||
| Recipe: mobile-java11-jammy-ARM-with-cdk-base | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| AmigoStage: PROD | ||
| templatePath: notification.yaml | ||
| templateStageParameters: | ||
| CODE: | ||
| SloSqsQueueArn: /notifications/CODE/mobile-notifications/notifications.queues.sloMonitoringArn | ||
| LoggingStreamName: /account/services/logging.stream.name.code | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The CloudFormation template now has a |
||
| PROD: | ||
| SloSqsQueueArn: /notifications/PROD/mobile-notifications/notifications.queues.sloMonitoringArn | ||
| LoggingStreamName: /account/services/logging.stream.name | ||
| notification: | ||
| type: autoscaling | ||
| parameters: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This dependency has been removed.