@@ -9,7 +9,7 @@ import Foundation
99import Logging
1010
1111/// The applications main logger.
12- public var logger : Logger = {
12+ fileprivate var logger : Logger = {
1313 var log = Logger ( label: " latexswiftui " )
1414
1515#if DEBUG
@@ -22,7 +22,7 @@ public var logger: Logger = {
2222} ( )
2323
2424@inlinable
25- public func logError( _ message: String , _ file: StaticString = #file, _ function: StaticString = #function, _ line: UInt = #line) {
25+ internal func logError( _ message: String , _ file: StaticString = #file, _ function: StaticString = #function, _ line: UInt = #line) {
2626 logger. error ( createMessage ( from: message, file: file, function: function, line: line) )
2727}
2828
@@ -33,7 +33,7 @@ public func logError(_ message: String, _ file: StaticString = #file, _ function
3333/// - file: The file string.
3434/// - line: The line number.
3535/// - Returns: A formatted logger message.
36- public func createMessage( from message: String , file: StaticString , function: StaticString , line: UInt ) -> Logger . Message {
36+ internal func createMessage( from message: String , file: StaticString , function: StaticString , line: UInt ) -> Logger . Message {
3737 let filename = ( " \( file) " . components ( separatedBy: " / " ) . last ?? " " ) . components ( separatedBy: " . " ) . first ?? " "
3838 let function = " \( function) " . components ( separatedBy: " ( " ) . first ?? " "
3939 return Logger . Message ( " [ \( filename) . \( function) : \( line) ] \( message) " )
0 commit comments