This is a destination for XCGLogger to make use of its logs with your Instabug setup.
Note that XCGLogger is a Swift framework and intended to be used with Swift projects.
Add pod Instabug-XCGLogger
to your podfile
iOS version >= 10.0
Instabug
version >= 10.0.3
XCGLogger
version >= 7.0.0
Make sure you import our destination first: import Instabug_XCGLogger
let log = XCGLogger.default
log.setup()
let ibglog = InstabugLogDestination()
log.add(destination: ibglog)
log.verbose("A verbose message")
log.debug("A debug message")
log.info("An info message")
log.warning("A warning message")
log.error("An error message")
log.severe("A severe message")