All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scribe.format.FormatBlocksFormatter.scala Maven / Gradle / Ivy

There is a newer version: 3.15.3
Show newest version
package scribe.format

import scribe.LogRecord
import scribe.output.{CompositeOutput, LogOutput}

class FormatBlocksFormatter(blocks: List[FormatBlock]) extends Formatter {
  override def format(record: LogRecord): LogOutput = {
    new CompositeOutput(blocks.map(_.format(record)))
  }

  override def toString: String = s"blocks(${blocks.mkString(", ")})"
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy