You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case you need to modify the logging format, you have to use the `LogModifiers`. There's a property in the logger called `modifiers` that you can update. For example, let's suppose you need to show the log level and the time at which it was created, you would need to do the following.
42
42
43
-
```
43
+
```swift
44
44
logger.modifiers= [.level, .time]
45
45
logger.log("Modified log")
46
46
// this would log: "[INFO] 00:00:00.0000 modified log"
@@ -55,7 +55,7 @@ A writer basically means "how do you want to log something". At the moment, Pepe
55
55
- console: it will use the `print()` function.
56
56
- os: it will use the os logging system via the `os_log()` function.
@@ -69,15 +69,15 @@ Pepe supports logging in a syncronous scope and a non-sysncronous one.
69
69
70
70
If you don't want to block your current Thread, this is what you have to use. For this kind of execution, you need to provide a DispatchQueue where the logging will run asyncronously.
0 commit comments