An open API service indexing awesome lists of open source software.

https://github.com/instabug/instabug-xcglogger


https://github.com/instabug/instabug-xcglogger

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

        

# Instabug-XCGLogger
This is a destination for XCGLogger to make use of its logs with your Instabug setup.

## Comptability
Note that XCGLogger is a Swift framework and intended to be used with Swift projects.

## Installation

Add pod `Instabug-XCGLogger` to your `podfile`

## Requirements

iOS version >= 10.0

`Instabug` version >= 10.0.3
`XCGLogger` version >= 7.0.0

## Example
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")
```