Semagle.Framework


Message

Namespace: Semagle.Logging

This is record that is logged. It's capable of representing both metrics (gauges) and events. See https://github.com/logary/logary for details.

Record Fields

Record FieldDescription
context
Signature: Map<string,obj>

Where in the code? Who did the operation? What tenant did the principal who did it belong to? ... context can be anything, you can decide how to deal with them in target through its key.

level
Signature: LogLevel

How important? See the docs on the LogLevel type for details.

name
Signature: string []

The 'path' or 'name' of this data point. Do not confuse message template in message.value

timestamp
Signature: EpochNanoSeconds

When? The # of nanoseconds since the UNIX epoch (1970-01-01T00:00:00Z)

value
Signature: string

Event (template or raw message) E.g. "{user} logged in"

Instance members

Instance memberDescription
x.getContext()
Signature: unit -> Map<string,obj>
x.getFields()
Signature: unit -> Map<string,obj>
x.README
Signature: unit

If you're looking for how to transform the Message's fields, then use the module methods rather than instance methods, since you'll be creating new values rather than changing an existing value.

CompiledName: get_README

x.timestampDateTimeOffset()
Signature: unit -> DateTimeOffset
Fork me on GitHub