JsonLogFormatter

zio.blocks.telemetry.JsonLogFormatter

JSON format compatible with OTLP log data model: {"timeUnixNano":...,"severityNumber":...,"severityText":"INFO","body":{"stringValue":"message"},"attributes":[...]}

Attributes

Source
LogFormatter.scala
Graph
Supertypes
trait LogFormatter
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

override 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

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

Format from a LogRecord (used by FormattedLogRecordProcessor).

Format from a LogRecord (used by FormattedLogRecordProcessor).

Attributes

Definition Classes
Source
LogFormatter.scala