|
| 1 | +# SPDX-License-Identifier: Apache-2.0 |
| 2 | +# Log Level Values |
| 3 | +# |
| 4 | +# SEVERE: indicates a critical error or failure |
| 5 | +# WARNING: warns of potential issues or errors |
| 6 | +# INFO: reports normal operational information |
| 7 | +# CONFIG: provides configuration-related information |
| 8 | +# FINE: provides detailed debugging information |
| 9 | +# FINER: provides finer-grained debugging information |
| 10 | +# FINEST: provides the most detailed debugging information |
| 11 | + |
| 12 | +# Set the default logging level |
| 13 | +# Available Levels are (from most verbose to least verbose): |
| 14 | +# ALL FINEST FINER FINE CONFIG INFO WARNING SEVERE OFF |
| 15 | +.level=INFO |
| 16 | +# logs for Block Node components FINEST temporarily |
| 17 | +org.hiero.block.level=FINEST |
| 18 | +# Helidon loggers |
| 19 | +io.helidon.level=INFO |
| 20 | +io.helidon.webserver.level=INFO |
| 21 | +io.helidon.config.level=SEVERE |
| 22 | +io.helidon.security.level=INFO |
| 23 | +io.helidon.common.level=INFO |
| 24 | +# Override the chatty HTTP server internals |
| 25 | +com.sun.net.httpserver.level = WARNING |
| 26 | +com.sun.net.httpserver.ServerImpl.level = WARNING |
| 27 | +com.sun.net.httpserver.ExchangeImpl.level = WARNING |
| 28 | + |
| 29 | +# Configure the app log level |
| 30 | +#org.hiero.block.level=FINE |
| 31 | +#org.hiero.block.server.level=FINE |
| 32 | + |
| 33 | +# Configure the configuration logging - OFF will suppress all configuration logging |
| 34 | +#org.hiero.block.server.config.logging.ConfigurationLoggingImpl.level=OFF |
| 35 | + |
| 36 | +# Configure specific Block Node loggers |
| 37 | +#org.hiero.block.server.producer.ProducerBlockItemObserver.level=FINE |
| 38 | +#org.hiero.block.server.mediator.LiveStreamMediatorImpl.level=FINE |
| 39 | +#org.hiero.block.server.mediator.LiveStreamPoller.level=FINE |
| 40 | +#org.hiero.block.server.consumer.level=FINE |
| 41 | +#org.hiero.block.server.pbj.PbjBlockStreamServiceProxy.level=FINE |
| 42 | + |
| 43 | +# Configure specific Block Node Consumer loggers |
| 44 | +#org.hiero.block.server.consumer.ConsumerStreamResponseObserver.level=FINE |
| 45 | +#org.hiero.block.server.consumer.HistoricBlockStreamSupplier.level=FINE |
| 46 | + |
| 47 | +# Configure specific stream service loggers |
| 48 | +#org.hiero.block.server.pbj.PbjBlockStreamServiceProxy.level=FINE |
| 49 | +#org.hiero.block.server.persistence.StreamPersistenceHandlerImpl.level=FINE |
| 50 | +#org.hiero.block.server.persistence.storage.write.level=FINE |
| 51 | +#org.hiero.block.server.persistence.storage.archive.LocalGroupZipArchiveTask.level=FINE |
| 52 | + |
| 53 | +# Helidon PBJ Plugin loggers |
| 54 | +#org.hiero.pbj.grpc.helidon.PbjProtocolHandler.level=FINE |
| 55 | + |
| 56 | +################################################################################ |
| 57 | +# Handlers configuration |
| 58 | +################################################################################ |
| 59 | +handlers = java.util.logging.ConsoleHandler |
| 60 | + |
| 61 | +################################################################################ |
| 62 | +# ConsoleHandler configuration |
| 63 | +################################################################################ |
| 64 | +java.util.logging.ConsoleHandler.level = ALL |
| 65 | +java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter |
| 66 | + |
| 67 | +################################################################################ |
| 68 | +# SimpleFormatter single-line format configuration |
| 69 | +################################################################################ |
| 70 | +# The format syntax uses java.util.Formatter. |
| 71 | +# The parameters are: |
| 72 | +# %1$ - date/time (java.util.Date) |
| 73 | +# %2$ - source (usually class and method) |
| 74 | +# %3$ - logger name |
| 75 | +# %4$ - log level |
| 76 | +# %5$ - log message |
| 77 | +# %6$ - throwable trace |
| 78 | +# |
| 79 | +# Example to produce a line such as: |
| 80 | +# 2025-02-25 21:07:36.281+0000 INFO [org.hiero.block.server.Server main] Starting BlockNode Server |
| 81 | +# 21:07:36.281+0000 - Indicates UTC time since there's no offset |
| 82 | +# Log level is padded to 7 chars |
| 83 | +java.util.logging.SimpleFormatter.format = %TF %<TT.%<TL%<Tz %4$-7s [%2$s] %5$s%6$s%n |
0 commit comments