aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-12-29 22:08:33 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-12-29 22:08:33 -0800
commit7f0692101a017f33ffb984e6df92e5dbef6ce71b (patch)
tree7b842f9372a2b07d5fea9d0ceb8762130153183c /src/main/java/org/traccar/config
parentf94951e7e78956b2bbd438665ff290a472afde76 (diff)
downloadtrackermap-server-7f0692101a017f33ffb984e6df92e5dbef6ce71b.tar.gz
trackermap-server-7f0692101a017f33ffb984e6df92e5dbef6ce71b.tar.bz2
trackermap-server-7f0692101a017f33ffb984e6df92e5dbef6ce71b.zip
Migrate logger keys
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r--src/main/java/org/traccar/config/Keys.java45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index ea0cf4961..ebe496c4f 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -977,6 +977,51 @@ public final class Keys {
"web.sameSiteCookie",
Collections.singletonList(KeyType.GLOBAL));
+ /**
+ * Output logging to the standard terminal output instead of a log file.
+ */
+ public static final ConfigKey<Boolean> LOGGER_CONSOLE = new ConfigKey<>(
+ "logger.console",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
+ * Log file name. For rotating logs, a date is added at the end of the file name for non-current logs.
+ */
+ public static final ConfigKey<String> LOGGER_FILE = new ConfigKey<>(
+ "logger.file",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
+ * Logging level. Default value is 'info'.
+ * Available options: off, severe, warning, info, config, fine, finer, finest, all.
+ */
+ public static final ConfigKey<String> LOGGER_LEVEL = new ConfigKey<>(
+ "logger.level",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
+ * Print full exception traces. Useful for debugging. By default shortened traces are logged.
+ */
+ public static final ConfigKey<Boolean> LOGGER_FULL_STACK_TRACES = new ConfigKey<>(
+ "logger.fullStackTraces",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
+ * Create a new log file daily. Helps with log management. For example, downloading and cleaning logs. Enabled by
+ * default.
+ */
+ public static final ConfigKey<Boolean> LOGGER_ROTATE = new ConfigKey<>(
+ "logger.rotate",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
+ * A list of position attributes to log.
+ */
+ public static final ConfigKey<String> LOGGER_ATTRIBUTES = new ConfigKey<>(
+ "logger.attributes",
+ Collections.singletonList(KeyType.GLOBAL),
+ "time,position,speed,course,accuracy,result");
+
private Keys() {
}