Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 370 Bytes

Logs.md

File metadata and controls

18 lines (12 loc) · 370 Bytes

Logs

RSCore contains a protocol called Logging. Classes and Structs that conform to Logging have a logger variable that the Class or Struct can use instead of importing os.log and creating a var log = Logger(..) variable.

Example:

import Foundation
import RSCore

class Sample: Logging {

    init() {
        logger.debug("Init")
    }
}