Skip to content

Loggy is an iOS Logging framework . It creates a new log file every 24 hrs. It has a dedicated Mac OS application which shows analytics and a detailed log report.

License

Notifications You must be signed in to change notification settings

siddhantmishra1305/Loggy

Repository files navigation

Loggy

Pod Version Pod Platform Pod License

Loggy is a simple logging framework for iOS with a dedicated mac application to view analytics and log report.

Installation

CocoaPods

platform :ios, '9.0'

target 'SampleTarget' do
  use_frameworks!
  pod 'Loggy'
end

Usage

  1. You can simply use import Loggy to get started.

  2. Add Loggy.setup to application:didFinishLaunchingWithOptions:

 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        Loggy.setup()
        return true
 }
  1. To log use Loggy.log(value: "Nice information", type: .Info)
  Loggy.log(value: "Nice information", type: .Info)
  Loggy.log(value: "Exception", type: .Error)
  Loggy.log(value: "log system info", type: .Verbose)
  Loggy.log(value: "Warning recieved", type: .Warning)
  1. Get Path to logfile
  Loggy.logFilePath

Mac app to view analytics

Loggy Analytics

  1. Import the log file.

  1. Dashboard tab shows a consolidated report of errors,warning etc.

  1. Log Details shows detailed information such as filename, function name , line number and time stamp.

Note: It automatically creates a new log file every 24 hrs.

Coming Soon

  • Carthage Support
  • macOS,tvOS and watchOS support

Author

License

  • Loggy is available under the Apache 2 license. See the LICENSE file.