66public protocol LogAgent {
77 /// name of the struct or class where the logger was instantiated from
88 var name : String { get }
9-
9+
1010 /// Get or set the configured log level.
1111 var level : LogAgentLevel { get set }
12-
12+
1313 /// This method is called when a `LogAgent` must emit a log message.
1414 ///
1515 /// - parameters:
@@ -49,7 +49,7 @@ public extension LogAgent {
4949 String ( $0)
5050 } ?? " n/a "
5151 }
52-
52+
5353 /// Log a message passing with the `.info` log level.
5454 func info( _ message: String , file: String = #file, function: String = #function, line: UInt = #line) {
5555 self . log ( level: . info,
@@ -60,7 +60,7 @@ public extension LogAgent {
6060 function: function,
6161 line: line)
6262 }
63-
63+
6464 /// Log a message passing with the `LogLevel.warn` log level.
6565 func warn( _ message: String , file: String = #file, function: String = #function, line: UInt = #line) {
6666 self . log ( level: . warn,
@@ -71,7 +71,7 @@ public extension LogAgent {
7171 function: function,
7272 line: line)
7373 }
74-
74+
7575 /// Log a message passing with the `.debug` log level.
7676 func debug( _ message: String , file: String = #file, function: String = #function, line: UInt = #line) {
7777 self . log ( level: . debug,
@@ -82,7 +82,7 @@ public extension LogAgent {
8282 function: function,
8383 line: line)
8484 }
85-
85+
8686 /// Log a message passing with the `.error` log level.
8787 func error( _ message: String , file: String = #file, function: String = #function, line: UInt = #line) {
8888 self . log ( level: . error,
@@ -93,7 +93,7 @@ public extension LogAgent {
9393 function: function,
9494 line: line)
9595 }
96-
96+
9797 /// Log a message passing with the `.trace` log level.
9898 func trace( _ message: String , file: String = #file, function: String = #function, line: UInt = #line) {
9999 self . log ( level: . trace,
@@ -104,7 +104,7 @@ public extension LogAgent {
104104 function: function,
105105 line: line)
106106 }
107-
107+
108108 /// Log a message passing with the `.fatal` log level.
109109 func fatal( _ message: String , file: String = #file, function: String = #function, line: UInt = #line) {
110110 self . log ( level: . fatal,
0 commit comments