[Log type] : Log Message -> File Function : Line
You can mark logs with 7 different labels.
- Trace: Appropriate for messages that contain information only when debugging a program.
Printlog.trace("Trace Message")
βͺ [Trace] βͺ : Trace Message -> PrintlogTests.swift trace() : 6
- Debug: Appropriate for messages that contain information normally of use only when debugging a program.
Printlog.debug("Debug Message")
π΅ [Debug] π΅ : Debug Message -> PrintlogTests.swift debug() : 11
- Information: Appropriate for informational messages.
Printlog.information("Information Message")
π’ [Information] π’ : Information Message -> PrintlogTests.swift information() : 16
- Notice: Appropriate for conditions that are not error conditions, but that may require special handling.
Printlog.notice("Notice Message")
π‘ [Notice] π‘ : Notice Message -> PrintlogTests.swift notice() : 21
- Warning: Appropriate for messages that are not error conditions, but more severe than "notice".
Printlog.warning("Warning Message")
π [Warning] π : Warning Message -> PrintlogTests.swift warning() : 26
- Error: Appropriate for error conditions.
Printlog.error("Error Message")
π΄ [Error] π΄ : Error Message -> PrintlogTests.swift error() : 31
- Critical: Appropriate for critical error conditions that usually require immediate attention.
Printlog.critical("Critical Message")
β« [Critical] β« : Critical Message -> PrintlogTests.swift critical() : 36