Logging
A logging class that can be told where to log to via transports.
Features include:
- Asynchronous, ordered output to transports
- Optionally keeps a history of logs
- All log messages can be tagged
LogLevel
s are provided as well- Force logging enables output via
print
even if no transports available
## Filtering
Two methods exist to allow for filtering of the log stream.
-
The logger class is used within the library to output logs of what is going on. Multi-threading and task management is very complicated and having logs can help immensely when it comes to debugging purposes
Everytime the log function is called, a number of tags are automatically produced that are attached to the message. These are:
- the function name that the log is called from
- The thread that the log is called from (UI or BG - for background)
- The filename
- The log level (see
LogLevel
)
This class is also made public so the API is meant to be stable
There’re also a number of predefined tags that the logs from within the library use. See
See moreLogTags
for a list.Declaration
Swift
public class Logger