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
- All
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( ... ) @native() @HotSpotIntrinsicCandidate()
-
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: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
filter[M >: String](filter: LogFilter[M]): LogFormat
Returns a new log format that produces the same as this one, if filter is satisfied
-
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[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
spaced(other: LogFormat): LogFormat
The alphanumeric version of the
|-|operator. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toJsonLogger: ZLogger[String, String]
Converts this log format into a json logger, which accepts text input, and produces json output.
-
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(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
|-|(other: LogFormat): LogFormat
Returns a new log format which concats both formats together with a space character between them.