Added logging function to SwiftLog Class and updated constructor.