
java.util.logging.ConsoleHandler.scala Maven / Gradle / Ivy
The newest version!
package java.util.logging
// Unfortunately the spec require the use of System.err
class ConsoleHandler extends StreamHandler(System.err, new SimpleFormatter) {
// Overriden on the javadocs but there are no comments about differences
override def publish(record: LogRecord): Unit =
super.publish(record)
override def close(): Unit = {
// Required by javadocs not to close the stream
writeHeader()
writeTail()
flush()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy