aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
authorLeo Sadovsky <lsadovski@oboz.com>2023-01-20 14:29:41 +0300
committerLeo Sadovsky <lsadovski@oboz.com>2023-01-20 14:29:41 +0300
commit080c289a8a29244bd46cf029eefabbe426ddd00b (patch)
tree82da8ef4995a13e4d51ecf0ba2d5644695194528 /src/main/java/org/traccar/config
parentd2237d91de4dd655a38e9078708eec38906470e0 (diff)
downloadtrackermap-server-080c289a8a29244bd46cf029eefabbe426ddd00b.tar.gz
trackermap-server-080c289a8a29244bd46cf029eefabbe426ddd00b.tar.bz2
trackermap-server-080c289a8a29244bd46cf029eefabbe426ddd00b.zip
Added the config parameter `logger.rotate.interval = ['day', 'hour']` that regulates the rotation frequency.
The default value is 'day' for backwards compatibility
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r--src/main/java/org/traccar/config/Keys.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index 26e922c12..19e4540ee 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -1575,6 +1575,17 @@ public final class Keys {
List.of(KeyType.CONFIG));
/**
+ * Log file rotation interval, the default rotation interval is once a day.
+ * This option is ignored if 'logger.rotate' = false
+ * Available options: day, hour
+ */
+ public static final ConfigKey<String> LOGGER_ROTATE_INTERVAL = new StringConfigKey(
+ "logger.rotate.interval",
+ List.of(KeyType.CONFIG),
+ "day");
+
+
+ /**
* A list of position attributes to log.
*/
public static final ConfigKey<String> LOGGER_ATTRIBUTES = new StringConfigKey(