diff --git a/app/server/appsmith-interfaces/pom.xml b/app/server/appsmith-interfaces/pom.xml index 00ac85011d6b..5481401bd774 100644 --- a/app/server/appsmith-interfaces/pom.xml +++ b/app/server/appsmith-interfaces/pom.xml @@ -18,6 +18,13 @@ + + + net.logstash.logback + logstash-logback-encoder + 8.0 + + com.hierynomus sshj diff --git a/app/server/appsmith-server/src/main/resources/application.properties b/app/server/appsmith-server/src/main/resources/application.properties index e1794aa238a3..bb5ff3030b10 100644 --- a/app/server/appsmith-server/src/main/resources/application.properties +++ b/app/server/appsmith-server/src/main/resources/application.properties @@ -28,12 +28,6 @@ spring.codec.max-in-memory-size=150MB spring.webflux.multipart.max-in-memory-size=${APPSMITH_CODEC_SIZE:150}MB appsmith.codec.max-in-memory-size=${APPSMITH_CODEC_SIZE:150} -# Log properties -logging.level.root=info -logging.level.com.appsmith=debug -logging.level.com.external.plugins=debug -logging.pattern.console=[%d{ISO8601, UTC}] [%t] requestId=%X{X-Appsmith-Request-Id} userEmail=%X{userEmail} traceId=%X{traceId} spanId=%X{spanId} - %m%n - #Spring security spring.security.oauth2.client.registration.google.client-id=${APPSMITH_OAUTH2_GOOGLE_CLIENT_ID:missing_value_sentinel} spring.security.oauth2.client.registration.google.client-secret=${APPSMITH_OAUTH2_GOOGLE_CLIENT_SECRET:} diff --git a/app/server/appsmith-server/src/main/resources/logback-spring.xml b/app/server/appsmith-server/src/main/resources/logback-spring.xml new file mode 100644 index 000000000000..d3fb710d69f5 --- /dev/null +++ b/app/server/appsmith-server/src/main/resources/logback-spring.xml @@ -0,0 +1,72 @@ + + + appsmith-server + + + + + + + + + + [%d{ISO8601, UTC}] [%t] requestId=%X{X-Appsmith-Request-Id} userEmail=%X{userEmail} traceId=%X{traceId} spanId=%X{spanId} - %m%n + + + + + + + + + + + + + + + + + + timestamp + + + + + + + { + "deploymentName": "${DEPLOYMENT_NAME}", + "serviceInstanceId": "${SERVICE_INSTANCE_ID}" + } + + + + + + { + "level": "%level", + "logger": "%logger", + "thread": "%thread", + "message": "%message", + "exception": "%exception", + "requestId": "%X{X-Appsmith-Request-Id}", + "userEmail": "%X{userEmail}", + "traceId": "%X{traceId}", + "spanId": "%X{spanId}" + } + + + + + + + + + + + + + + +