Takes the SwiftyBeaver library and will send a slack message of the logs whenever slacky.error(message) gets called.
SlackyBeaver is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SlackyBeaver"
Add that near the top of your AppDelegate.swift
to be able to use SwiftyBeaver in your whole project.
import SlackyBeaver
let slacky = SlackyBeaver(slackToken: "YOUR-SLACK-API-TOKEN-HERE", slackChannel: "ios-logs")
Then you can call
slacky.debug(message: "Here is first log")
slacky.verbose(message: "Here is second log")
slacky.info("Here is third log")
slacky.warning("Here is fourth log")
slacky.error("This will log, then send the logs to the slack channel")
Upon calling slacky.error
it will send the logs to the configured slack channel on a background thread.
drewg233, drewgarcia23@gmail.com
SlackyBeaver is available under the MIT license. See the LICENSE file for more info.