ESPLog
class ESPLog
Type that manages printing of formatted console logs for debugging process.
-
Boolean to determine whether console log needs to be printed
Declaration
Swift
static var isLogEnabled: Bool
-
Prints messages in console that are triggered from different functions in a workflow. Add additional info like timestamp, filename, function name and line before printing the output.
Declaration
Swift
static func log(_ message: String, file: String = #file, function: String = #function, line: Int = #line)
Parameters
message
Message describing the current instruction in a workflow.
file
Filename containing the caller of this function.
function
Name of the function invoking this method.
line
Line number from where the logs are generated.