trace :: String -> Map.T String a -> <Proc, Exception> ()
getLogEventsDays :: String -> String -> Integer -> <Proc, Exception> [String]
getLogEvents :: String -> String -> String -> String -> <Proc, Exception> [String]
+ allLogEvents :: String -> Integer -> <Proc, Exception> Map.T String [String]
importJava "org.simantics.audit.server.AuditLoggingServer" where
start :: String -> Integer -> <Proc> ()
\ No newline at end of file
}
}
+ public static Map<String, List<String>> allLogEvents(String level, int days) throws AuditLoggingException {
+ Map<String, List<String>> results = new HashMap<>();
+ try {
+ Files.walk(Activator.getLogLocation()).forEach(uuid -> {
+ String fileName = uuid.getFileName().toString();
+ try {
+ List<String> events = getLogEventsDays(fileName, level, days);
+ results.put(fileName, events);
+ } catch (AuditLoggingException e) {
+ LOGGER.error("Could not get audit log events for {}", fileName, e);
+ }
+ });
+ } catch (IOException e) {
+ throw new AuditLoggingException(e);
+ }
+ return results;
+ }
+
/**
* Gets audit events for the last 5 days
*