File tree 2 files changed +6
-2
lines changed
dslink-v2/src/main/java/com/acuity/iot/dsa/dslink/sys/logging
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ subprojects {
5
5
apply plugin : ' maven'
6
6
7
7
group ' org.iot-dsa'
8
- version ' 0.70.4 '
8
+ version ' 0.70.5 '
9
9
10
10
targetCompatibility = JavaVersion . VERSION_1_8
11
11
sourceCompatibility = JavaVersion . VERSION_1_8
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ protected void write(LogRecord record) {
67
67
String recordMsg = encodeLogRecord (record );
68
68
DSDateTime ts = DSDateTime .valueOf (record .getMillis ());
69
69
if (levelMatches (recordLevel , level .toLevel ()) &&
70
- (name == null || name .isEmpty () || name . equals (recordName )) &&
70
+ (name == null || name .isEmpty () || logNameMatches (recordName , name )) &&
71
71
(filter == null || filter .isEmpty () || recordMsg .matches (filter ))) {
72
72
73
73
while (lines .size () > 1000 ) {
@@ -158,6 +158,10 @@ private static String encodeLogRecord(LogRecord record) {
158
158
public static boolean levelMatches (Level msgLevel , Level desiredLevel ) {
159
159
return msgLevel .intValue () >= desiredLevel .intValue ();
160
160
}
161
+
162
+ public static boolean logNameMatches (String msgLogName , String desiredLogName ) {
163
+ return msgLogName != null && msgLogName .startsWith (desiredLogName );
164
+ }
161
165
162
166
static {
163
167
levelRange = new DSList ();
You can’t perform that action at this time.
0 commit comments