Creates ‘source’ information from a #file identifier.
Example usage: log.atLevelDebug(id: 0, source: #file.source(#function, #line), message:
This will increase the time needed to create the log entry, it is therefore not advised for time-critical entries. Suggested use is at level NOTICE and above only.
public func source(_ function: String, _ line: Int) -> String
A string identifying the function that the logging information is created in.
The line number where the logging call is made.
A string to be used as the ‘source’ identifier in the logging message.