Series: SwiftyBeaver tutorial: Colorful, simple logging for Swift apps

SwiftyBeaver is a pure Swift logging framework to be used for your Swift applications. The SwiftyBeaver tutorial will have you logging in no time. SwiftyBeaver is a lightweight, extensible logging framework for Swift 2 and 3. Whether you're logging in your iOS, tvOS, watchOS, OS X or Swift 3 apps on a server somewhere, you can use SwiftyBeaver. SwiftyBeaver allows you to configure one or more log destinations to control where your messages go. Further, it provides a powerful and flexible filtering mechanism so that you can which messages go where. If one of the provided log destinations does suit your needs, SwiftyBeaver is extensible and you can create your own. Further, SwiftyBeaver can log in color and if you don't like the default colors, you can change them. In this tutorial, you will learn:
  • What is SwiftyBeaver?
  • How to start logging with SwiftyBeaver in your applications
  • How to use add a destination so that you can see your logged messages
  • How to use SwiftyBeaver in your own dynamic frameworks
  • What are the SwiftyBeaver logging levels?
  • How do I log messages at specific logging levels
  • How to add and configure logging destinations so that you can log to the Console, one or more files and/or the SwiftyBeaver platform
  • Common destination configuration options that apply to each of the provided destinations
  • Configuration options specific to the ConsoleDestination
  • Configuration options specific to the FileDestination
  • Configuration options specific to the SwiftyBeaver platform
  • Installing/configuring the XCode plugin so your console can display colored text
  • Installing/configuring/using the SwiftyBeaver OS X app so you can view messages logged from the SwiftyBeaver platform
This SwifyBeaver tutorial will teach you all about this lighweight, simple framework. Replace all of those print statements sprinkled throughout your applications with real logging. You can have a look at SwiftyBeaver at their repo