
eu.hgross.blaubot.util.MyFormatter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blaubot Show documentation
Show all versions of blaubot Show documentation
An easy to use publish/subscribe middleware to create and communicate through dynamically created adhoc networks.
package eu.hgross.blaubot.util;
import java.util.Date;
import java.util.logging.Formatter;
import java.util.logging.LogRecord;
public class MyFormatter extends Formatter {
@Override
public String format(LogRecord record) {
return "Thread#"+record.getThreadID()+"::"
+new Date(record.getMillis())+"::"
+record.getMessage()+"\n";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy