Other Structures
The following structures are available globally.
-
Settings specific to the gossip payloads used in the SWIM gossip dissemination subsystem.
See moreDeclaration
Swift
public struct SWIMGossipSettings
-
Lifeguard is a set of extensions to SWIM that helps reducing false positive failure detections.
See moreDeclaration
Swift
public struct SWIMLifeguardSettings
-
Pretty log formatter which prints log lines in the following multi line format, listing every metadata element in it’s own,
//
-prefixed, line as well as pretty printing connections if set asLogger.MetadataValue
.Example output:
SWIMNIOSample: [2020-08-25 0:7:59.8420] [info] [Example.swift:66] Membership status changed: [udp://127.0.0.1:7001#7015602685756068157] is now [alive(incarnation: 0)] / metadata: / "swim/member": udp://127.0.0.1:7001#7015602685756068157 / "swim/member/previousStatus": unknown / "swim/member/status": alive(incarnation: 0)
Pro tip: you may want to use a coloring terminal application, which colors lines prefixed with
See more//
with a slightly different color, which makes visually parsing metadata vs. log message lines even more visually pleasing.Declaration
Swift
public struct _SWIMPrettyMetadataLogHandler : LogHandler