diff --git a/agents-flex-core/src/main/java/com/agentsflex/core/util/LogUtil.java b/agents-flex-core/src/main/java/com/agentsflex/core/util/LogUtil.java new file mode 100644 index 0000000..f35858c --- /dev/null +++ b/agents-flex-core/src/main/java/com/agentsflex/core/util/LogUtil.java @@ -0,0 +1,22 @@ +package com.agentsflex.core.util; + +public class LogUtil { + + private static Logger logger = System.out::println; + + public static Logger getLogger() { + return logger; + } + + public static void setLogger(Logger logger) { + LogUtil.logger = logger; + } + + public static void println(String message) { + logger.info(message); + } + + interface Logger { + void info(String message); + } +}