PerfectLogger
The Perfect Logger is an extension to the base "Log" system in the core PerfectLib.
It allows Logging of events to a specified file.
If no file is specified the default file used for logging is "log.txt"
Using in your project
Add the dependancy to your project's Package.swift file:
.Package(url: "https://github.com/PerfectlySoft/Perfect-Logger.git", majorVersion: 0, minor: 0),
Now add the import
directive to the file you wish to use the logging in:
import PerfectLogger
To log events to the local console as well as a file:
LogFile.debug("debug message", "test.txt")
LogFile.info("info message", "test.txt")
LogFile.warning("warning message", "test.txt")
LogFile.error("error message", "test.txt")
LogFile.critical("critical message", "test.txt")
LogFile.terminal("terminal message", "test.txt")
To log to the default file, omit the file name parameter.
Issues
We are transitioning to using JIRA for all bugs and support related issues, therefore the GitHub issues has been disabled.
If you find a mistake, bug, or any other helpful suggestion you'd like to make on the docs please head over to http://jira.perfect.org:8080/servicedesk/customer/portal/1 and raise it.
A comprehensive list of open issues can be found at http://jira.perfect.org:8080/projects/ISS/issues
Further Information
For more information on the Perfect project, please visit perfect.org.