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

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

There is a newer version: 3.15.3
Show newest version
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