scribe.format.RightPaddingBlock.scala Maven / Gradle / Ivy
package scribe.format
import scribe.LogRecord
import scribe.output.{LogOutput, TextOutput}
class RightPaddingBlock(block: FormatBlock, length: Int, padding: Char) extends FormatBlock {
override def format(record: LogRecord): LogOutput = {
val value = block.format(record).plainText
new TextOutput(value.padTo(length, " ").mkString)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy