DiscordLogger
public protocol DiscordLogger
Declares that a type will act as a logger.
-
Whether to log or not.
Declaration
Swift
var level: DiscordLogLevel
-
log(_:type:)
Default implementationNormal log messages.
Default Implementation
Normal log messages.
Declaration
Swift
func log( _ message: @autoclosure () -> String, type: String)
-
verbose(_:type:)
Default implementationMore info on log messages.
Default Implementation
More info on log messages.
Declaration
Swift
func verbose(_ message: @autoclosure () -> String, type: String)
-
debug(_:type:)
Default implementationDebug messages.
Default Implementation
Debug messages.
Declaration
Swift
func debug(_ message: @autoclosure () -> String, type: String)
-
error(_:type:)
Default implementationError Messages.
Default Implementation
Error Messages.
Declaration
Swift
func error(_ message: @autoclosure () -> String, type: String)