From f88873bf80abc59a58b428c7307086f94c682cef Mon Sep 17 00:00:00 2001 From: Leif Date: Fri, 10 Mar 2023 08:36:52 -0700 Subject: [PATCH] Add public init for Payload --- Sources/Scribe/Scribe.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Sources/Scribe/Scribe.swift b/Sources/Scribe/Scribe.swift index 6c13e97..7a1e4b4 100644 --- a/Sources/Scribe/Scribe.swift +++ b/Sources/Scribe/Scribe.swift @@ -14,6 +14,13 @@ open class Scribe: Pluginable { public let metadata: Metadata? /// The source of the log event. public let source: String? + + init(level: Level, message: Message, metadata: Metadata?, source: String?) { + self.level = level + self.message = message + self.metadata = metadata + self.source = source + } } /// An alias Logger.Level.