Skip to content

drewg233/SlackyBeaver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SlackyBeaver

CI Status Version License Platform

Description

Takes the SwiftyBeaver library and will send a slack message of the logs whenever slacky.error(message) gets called.

Installation

SlackyBeaver is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "SlackyBeaver"

Usage

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.

Author

drewg233, drewgarcia23@gmail.com

License

SlackyBeaver is available under the MIT license. See the LICENSE file for more info.