Skip to content

Commit e957565

Browse files
feat: add additional metrics (#164)
Signed-off-by: Matt Peterson <matt.peterson@swirldslabs.com>
1 parent 514d2d9 commit e957565

24 files changed

+1283
-244
lines changed

gradle/modules.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ com.lmax.disruptor=com.lmax:disruptor
1212
io.helidon.webserver=io.helidon.webserver:helidon-webserver
1313
io.helidon.webserver.grpc=io.helidon.webserver:helidon-webserver-grpc
1414
io.helidon.webserver.testing.junit5=io.helidon.webserver.testing.junit5:helidon-webserver-testing-junit5
15+
16+
io.helidon.logging=io.helidon.logging:helidon-logging-jul
1517
org.antlr.antlr4.runtime=org.antlr:antlr4-runtime
1618
com.google.common=com.google.guava:guava
1719

server/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ mainModuleInfo {
2929
annotationProcessor("com.google.auto.service.processor")
3030
runtimeOnly("com.swirlds.config.impl")
3131
runtimeOnly("org.apache.logging.log4j.slf4j2.impl")
32+
runtimeOnly("io.helidon.logging")
3233
}
3334

3435
testModuleInfo {
36+
annotationProcessor("dagger.compiler")
3537
requires("org.junit.jupiter.api")
3638
requires("org.mockito")
3739
requires("org.mockito.junit.jupiter")

server/docker/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ COPY --from=distributions server-${VERSION}.tar .
2424
# Extract the TAR file
2525
RUN tar -xvf server-${VERSION}.tar
2626

27+
# Copy the logging properties file
28+
COPY logging.properties logging.properties
29+
2730
# RUN the bin script for starting the server
2831
ENTRYPOINT ["/bin/bash", "-c", "/app/server-${VERSION}/bin/server"]

server/docker/logging.properties

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Log Level Values
2+
#
3+
# SEVERE: indicates a critical error or failure
4+
# WARNING: warns of potential issues or errors
5+
# INFO: reports normal operational information
6+
# CONFIG: provides configuration-related information
7+
# FINE: provides detailed debugging information
8+
# FINER: provides finer-grained debugging information
9+
# FINEST: provides the most detailed debugging information
10+
11+
# Set the default logging level
12+
.level=INFO
13+
14+
# Helidon loggers
15+
io.helidon.webserver.level=SEVERE
16+
io.helidon.config.level=SEVERE
17+
io.helidon.security.level=INFO
18+
io.helidon.common.level=INFO
19+
20+
# Configure the app log level
21+
#com.hedera.block.level=FINE
22+
#com.hedera.block.server.level=FINE
23+
24+
# Configure specific loggers
25+
#com.hedera.block.server.mediator.LiveStreamMediatorImpl.level=FINE
26+
#com.hedera.block.server.persistence.storage.write.BlockAsDirWriter.level=FINE
27+
#com.hedera.block.server.producer.ProducerBlockItemObserver.level=FINE
28+
29+
# Console handler configuration
30+
handlers = java.util.logging.ConsoleHandler
31+
java.util.logging.ConsoleHandler.level = FINE
32+
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

0 commit comments

Comments
 (0)