Skip to content

Commit f28f813

Browse files
committed
Publicise log metadata fields
1 parent b3ea975 commit f28f813

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/Cosmic/Base/Logger.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import Foundation
1111

1212
public struct LogMetadata {
1313

14-
let file: StaticString
14+
public let file: StaticString
1515

16-
let line: UInt
16+
public let line: UInt
1717

18-
let function: StaticString
18+
public let function: StaticString
1919

2020
public init(file: StaticString = #file, line: UInt = #line, function: StaticString = #function) {
2121
self.file = file
@@ -25,7 +25,7 @@ public struct LogMetadata {
2525

2626
// MARK: Computed properties
2727

28-
var filename: String {
28+
public var filename: String {
2929
return "\(file)".components(separatedBy: "/").last ?? "\(file)"
3030
}
3131
}

0 commit comments

Comments
 (0)