trait LogFormat extends AnyRef
A LogFormat represents a DSL to describe the format of text log messages.
import zio.logging.LogFormat._ timestamp.fixed(32) |-| level |-| label("message", quoted(line))
- Self Type
- LogFormat
- Alphabetic
- By Inheritance
- LogFormat
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def +(other: LogFormat): LogFormat
Returns a new log format which concats both formats together without any separator between them.
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def color(color: LogColor): LogFormat
Returns a new log format that produces the same output as this one, but with the specified color applied.
- final def concat(other: LogFormat): LogFormat
The alphanumeric version of the
+
operator. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def fixed(size: Int): LogFormat
Returns a new log format that produces the same as this one, but with a space-padded, fixed-width output.
Returns a new log format that produces the same as this one, but with a space-padded, fixed-width output. Be careful using this operator, as it destroys all structure, resulting in purely textual log output.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def highlight: LogFormat
Returns a new log format that produces the same as this one, except that the log output is highlighted.
- final def highlight(fn: (LogLevel) => LogColor): LogFormat
Returns a new log format that produces the same as this one, except that log levels are colored according to the specified mapping.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def spaced(other: LogFormat): LogFormat
The alphanumeric version of the
|-|
operator. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toLogger: ZLogger[String, String]
Converts this log format into a text logger, which accepts text input, and produces text output.
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def |-|(other: LogFormat): LogFormat
Returns a new log format which concats both formats together with a space character between them.