SwiftyBeaver macOS app

In this lesson

In this lesson, I will discuss the SwiftyBeaver macOS app and how you use it to register a new iOS, watchOS, tvOS or macOS application to be able to log to the SwiftyBeaver platform in the cloud.

Transcript

Tap on time to skip ahead

00:11

Hello everyone! In this lesson I’m going to talk about the SwiftyBeaver macOS app. And I’m not going to go into great detail about the features of the app because this will probably just get better and better as time goes by. But what it does allow you to do, is to view the messages that have been logged from you’re app to the SwiftyBeaver platform in the cloud. As you can see, I can look at the various levels of messages that have been logged along with UUID or the analytics ID to see what kinds of things are going on with the users of my application after my application has been released.

00:57

So here I can see warnings, here, I can see errors, which I have none. And I think sort of narrow down on what I want to look at. I can also do some searching here. So how do you get this app? And how do you configure your SwiftyBeaver platform destination to be able to write to the cloud, the SwiftyBeaver platform cloud. I’ll cover all that in this lesson.

01:28

Well to get the app, the first thing you need to do is to head over to SwiftyBeaver.com which is the SwiftyBeaver website. They are currently in private beta and if you’re lucky enough to be on the private beta like I am. I had previously filled in my email and added myself to the beta waiting list and got selected. Unless you’re on the beta, you won’t be able to get the app until they’re out of beta. So hopefully by the time you watch this or shortly thereafter, SwiftyBeaver will be out of beta and the macOS app will be available to all.

02:04

I’m here in the AppDelegate of my sample application. And I’m going to navigate down to the point where I initialize my logger. And specifically where I initialize the SwiftyBeaver platform destination. So if I choose to log to the cloud using the SwiftyBeaver platform destination, I need to construct this given an appID, an app secret and an encryption key and then I can configure it and add it just like any other destination. But where do I get these values? Because unless I provide valid values here, nothing is actually going to be logged. Well that’s where the macOS app comes in and I’m going to show you how to create a new application so that it will provide you with these values and you can add them here and log to the SwiftyBeaver platform destination.

03:06

I’m back in the macOS app and I’m going to show you how to generate those components that will be used to log. So I’m going to click on the settings icon and if you open this for the first time you’ll see this panel immediately when you launch SwiftyBeaver, because you can’t really do anything with the app until you’ve registered an app. So here’s some existing credentials for an app that I’ve already registered, but if you want to register a new app you just navigate to that tab, create/generate app credentials. And here’s the appID, the app secret and the encryption key and one by one, you’ll copy those to the clipboard and then over to those components in your code. And it might be a good idea for you to copy these down somewhere else in case you want to use this app on another Mac somewhere. So what we’ll do is translate these components. I’m going to copy this first and then I’ll head over and paste these in and you’ll see what we’ve done. Once I’ve copied these 3 values into my code, I can click Connect. And this will actually contact the SwiftyBeaver platform in the cloud in register this application with the credentials so that I can actually view my log data.

04:36

I’m back here in the AppDelegate we get where I am initializing my SwiftyBeaver platform destination and you’ll notice that I pasted in the values from the macOS app; appID, app secret and encryption key and at this point now, when I launch my application, anything .Info or higher will be logged to the encrypted SwiftyBeaver platform destination and I’ll be able to use the macOS app to view those logs. So it is easy is that. 

Additional Info

Register to get access to additional resources and info.