Skip to content

Commit

Permalink
Update RefdsModel.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelesantos committed Oct 28, 2024
1 parent 0071d10 commit 9e31957
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/RefdsShared/Model/RefdsModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ public extension RefdsModel {
await Self.loggerInstance.info(message: encodable)
}
}

public extension Array where Element: RefdsModel {
func logger() async {
let encodable = (self as Encodable).message
await RefdsLoggerSystem.shared.info(message: encodable)
}
}

0 comments on commit 9e31957

Please sign in to comment.