LogFormatter

zio.blocks.telemetry.LogFormatter
trait LogFormatter

Stateless log formatter. Appends formatted output to a StringBuilder. Formatters are singletons — no per-instance state, zero allocation. The StringBuilder is owned and pooled by the emitter.

Attributes

Source
LogFormatter.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def format(sb: StringBuilder, timestampNanos: Long, severity: Severity, severityText: String, body: String, builder: AttributesBuilder, traceIdHi: Long, traceIdLo: Long, spanId: Long, traceFlags: Byte, throwable: Option[Throwable]): Unit

Attributes

Source
LogFormatter.scala
def formatRecord(sb: StringBuilder, record: LogRecord): Unit

Format from a LogRecord (used by FormattedLogRecordProcessor).

Format from a LogRecord (used by FormattedLogRecordProcessor).

Attributes

Source
LogFormatter.scala