aboutsummaryrefslogtreecommitdiffstats
path: root/vespalog
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2020-03-26 16:27:59 +0100
committergjoranv <gv@verizonmedia.com>2020-03-26 16:27:59 +0100
commit231eb9b109b18e80962fecc20915d970373dee47 (patch)
tree60a0389d69aaf4c2fb04e2b3d934840da1e17b67 /vespalog
parent74b0ac5da8749d76817f316c64af14424d2fca68 (diff)
Limit acces.
Diffstat (limited to 'vespalog')
-rw-r--r--vespalog/abi-spec.json7
-rw-r--r--vespalog/src/main/java/com/yahoo/log/VespaLevelControllerRepo.java8
2 files changed, 5 insertions, 10 deletions
diff --git a/vespalog/abi-spec.json b/vespalog/abi-spec.json
index 09ac3fa75d3..68197f98f9a 100644
--- a/vespalog/abi-spec.json
+++ b/vespalog/abi-spec.json
@@ -300,15 +300,10 @@
"public"
],
"methods": [
- "public void <init>(java.lang.String, java.lang.String, java.lang.String)",
- "public com.yahoo.log.LevelController getLevelControl(java.lang.String)",
"public com.yahoo.log.LevelController getLevelController(java.lang.String)",
"public void close()"
],
- "fields": [
- "public static final int controlFileHeaderLength",
- "public static final int numLevels"
- ]
+ "fields": []
},
"com.yahoo.log.event.Collection": {
"superClass": "com.yahoo.log.event.Event",
diff --git a/vespalog/src/main/java/com/yahoo/log/VespaLevelControllerRepo.java b/vespalog/src/main/java/com/yahoo/log/VespaLevelControllerRepo.java
index 85d92075827..2cc88855deb 100644
--- a/vespalog/src/main/java/com/yahoo/log/VespaLevelControllerRepo.java
+++ b/vespalog/src/main/java/com/yahoo/log/VespaLevelControllerRepo.java
@@ -30,12 +30,12 @@ public class VespaLevelControllerRepo implements LevelControllerRepo {
/**
* length of fixed header content of a control file, constant:
**/
- public static final int controlFileHeaderLength;
+ static final int controlFileHeaderLength;
/**
* number of distinctly controlled levels (in logctl files),
* must be compatible with C++ Vespa logging
**/
- public static final int numLevels = 8;
+ static final int numLevels = 8;
static {
controlFileHeaderLength = CFHEADER.length()
@@ -50,7 +50,7 @@ public class VespaLevelControllerRepo implements LevelControllerRepo {
**/
private LevelController defaultLevelCtrl;
- public VespaLevelControllerRepo(String logCtlFn, String logLevel, String applicationPrefix) {
+ VespaLevelControllerRepo(String logCtlFn, String logLevel, String applicationPrefix) {
this.logControlFilename = logCtlFn;
this.appPrefix = applicationPrefix;
defaultLevelCtrl = new DefaultLevelController(logLevel);
@@ -142,7 +142,7 @@ public class VespaLevelControllerRepo implements LevelControllerRepo {
levelControllerRepo = new MappedLevelControllerRepo(mapBuf, controlFileHeaderLength, numLevels, logControlFilename);
}
- public LevelController getLevelControl(String suffix) {
+ private LevelController getLevelControl(String suffix) {
LevelController ctrl = null;
if (levelControllerRepo != null) {
if (suffix == null || suffix.equals("default")) {