We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4d4894 commit c8718e9Copy full SHA for c8718e9
README.md
@@ -1,12 +1,16 @@
1
# swift-log-file
2
3
+## Example: Just logging to a file
4
+
5
```
6
let logFileURL = URL(/* your local log file here */)
7
let logger = try FileLogHandler.fileLogger(label: "Foobar", localFile: logFileURL)
8
9
logger.error("Test Test Test")
10
11
12
+## Example: Logging to both the standard output (Xcode console if using Xcode) and a file.
13
14
15
let logFileURL = try getDocumentsDirectory().appendingPathComponent(logFileName)
16
0 commit comments