Skip to content

Commit

Permalink
Add public init for Payload
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif committed Mar 10, 2023
1 parent 7988180 commit f88873b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/Scribe/Scribe.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f88873b

Please sign in to comment.