diff options
author | Anton Tananaev <anton@traccar.org> | 2024-06-09 13:37:45 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-06-09 13:37:45 -0700 |
commit | e92dea78ebad3f921c031a974378a218c6bd90b1 (patch) | |
tree | 4e9f39855c9137fb203dde85ec16535ee0cdce10 /src/main/java/org/traccar/config | |
parent | 2147ecb2d9fe0fb49b3f03dc650bc363e72e3fd2 (diff) | |
download | trackermap-server-e92dea78ebad3f921c031a974378a218c6bd90b1.tar.gz trackermap-server-e92dea78ebad3f921c031a974378a218c6bd90b1.tar.bz2 trackermap-server-e92dea78ebad3f921c031a974378a218c6bd90b1.zip |
Decode text data in logs (fix #5336)
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r-- | src/main/java/org/traccar/config/Keys.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java index 91d5dac5d..e51ba07c4 100644 --- a/src/main/java/org/traccar/config/Keys.java +++ b/src/main/java/org/traccar/config/Keys.java @@ -1902,6 +1902,14 @@ public final class Keys { true); /** + * If all bytes are printable characters, log network data as text instead of HEX. + */ + public static final ConfigKey<Boolean> LOGGER_TEXT_PROTOCOL = new BooleanConfigKey( + "logger.decodeTextData", + List.of(KeyType.CONFIG), + true); + + /** * Log file rotation interval, the default rotation interval is once a day. * This option is ignored if 'logger.rotate' = false * Available options: day, hour |