You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val regex =Pattern.compile("""\[([^]]+)] \[\s*([0-9.]+)]\[\s*(T\d+)] init: starting service '([^']+)'.*""")
13
+
for (line in logLines) {
14
+
val matcher = regex.matcher(line)
15
+
if (matcher.find()) {
16
+
val timestamp = matcher.group(1)
17
+
val kernelTime = matcher.group(2)
18
+
val tLevel = matcher.group(3)
19
+
val serviceName = matcher.group(4)
20
+
21
+
println("Timestamp: $timestamp, Kernel Time: $kernelTime, T-Level: $tLevel, Service Name: $serviceName")
22
+
}
23
+
}
24
+
}
25
+
26
+
funrun2() {
27
+
val logLines =File("booting.log2").readLines()
28
+
29
+
30
+
val actionRegex =Pattern.compile("""\[([^]]+)] \[\s*([0-9.]+)]\[\s*(T\d+)] init: processing action \(([^)]+)\) from \(([^)]+)\).*""")
31
+
val commandRegex =Pattern.compile("""\[([^]]+)] \[\s*([0-9.]+)]\[\s*(T\d+)] init: Command '([^']+)' action=([^\(]+) \(([^)]+)\) took (\d+)ms and (succeeded|failed)(.*)?""")
32
+
val svcExecRegex =Pattern.compile("""\[([^]]+)] \[\s*([0-9.]+)]\[\s*(T\d+)] init: SVC_EXEC service '([^']+)' pid (\d+) \(([^)]+)\) started; waiting\.""")
33
+
val serviceStartRegex =Pattern.compile("""\[([^]]+)] \[\s*([0-9.]+)]\[\s*(T\d+)] init: starting service '([^']+)'.*""")
0 commit comments