-
Notifications
You must be signed in to change notification settings - Fork 80
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
Use Airlift logger #260
Use Airlift logger #260
Conversation
I like this approach. Not a review .. just an initial thought: We should we add docs on how to configure logging and add minimal config to jar with dependencies and docker container. |
docs/installation.md
Outdated
@@ -105,6 +105,14 @@ configuration YAML file. | |||
|
|||
Find more information in the [routing rules documentation](routing-rules.md). | |||
|
|||
### Configure logging | |||
|
|||
Path to `log.properties` needs to be set via `log.levels-file` JVM options |
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 should be added to release notes as a breaking change
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.
Also we need to explain what to configure in log.properties
separate lines of
javapackage=level
and what available levels are. In fact this should also be done better in the Trino docs btw
gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ActiveClusterMonitor.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsHttpMonitor.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/main/java/io/trino/gateway/ha/notifier/EmailNotifier.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/main/java/io/trino/gateway/ha/resource/TrinoResource.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/main/java/io/trino/gateway/ha/resource/TrinoResource.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/main/java/io/trino/gateway/ha/resource/TrinoResource.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/main/java/io/trino/gateway/ha/router/TrinoQueueLengthRoutingTable.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServletImpl.java
Outdated
Show resolved
Hide resolved
Rebased on main without any changes. |
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.
Some minor questions mostly .. but essentially good to go.
docs/installation.md
Outdated
@@ -105,6 +105,14 @@ configuration YAML file. | |||
|
|||
Find more information in the [routing rules documentation](routing-rules.md). | |||
|
|||
### Configure logging | |||
|
|||
Path to `log.properties` needs to be set via `log.levels-file` JVM options |
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.
Path to `log.properties` needs to be set via `log.levels-file` JVM options | |
Path to `log.properties` must be set via `log.levels-file` JVM options |
docs/installation.md
Outdated
Path to `log.properties` needs to be set via `log.levels-file` JVM options | ||
like `-Dlog.levels-file=etc/log.properties`. | ||
|
||
Find more information in the [logging properties](https://trino.io/docs/current/admin/properties-logging.html) |
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.
Find more information in the [logging properties](https://trino.io/docs/current/admin/properties-logging.html) | |
Use the `log.*` properties from the [Trino logging properties documentation](https://trino.io/docs/current/admin/properties-logging.html) for further configuration. |
probably .. but .. those have to also be set as -D parameters... need to explain that.
docs/installation.md
Outdated
@@ -105,6 +105,14 @@ configuration YAML file. | |||
|
|||
Find more information in the [routing rules documentation](routing-rules.md). | |||
|
|||
### Configure logging | |||
|
|||
Path to `log.properties` needs to be set via `log.levels-file` JVM options |
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.
Also we need to explain what to configure in log.properties
separate lines of
javapackage=level
and what available levels are. In fact this should also be done better in the Trino docs btw
@@ -205,7 +208,7 @@ | |||
|
|||
<dependency> | |||
<groupId>io.dropwizard</groupId> | |||
<artifactId>dropwizard-logging</artifactId> | |||
<artifactId>dropwizard-request-logging</artifactId> |
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.
would be nice to get rid of this and just use jetty directly .. but for now it might have to stay
@@ -235,6 +238,11 @@ | |||
<version>2.1.1</version> | |||
</dependency> | |||
|
|||
<dependency> |
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.
I assume this is the suggested use from airlift/trino for the servlet api
Fixes #147