Loggy is a simple logging framework for iOS with a dedicated mac application to view analytics and log report.
platform :ios, '9.0'
target 'SampleTarget' do
use_frameworks!
pod 'Loggy'
end
-
You can simply use
import Loggy
to get started. -
Add
Loggy.setup
toapplication:didFinishLaunchingWithOptions:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
Loggy.setup()
return true
}
- 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)
- Get Path to logfile
Loggy.logFilePath
- Import the log file.
- Dashboard tab shows a consolidated report of errors,warning etc.
- 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.
- Carthage Support
- macOS,tvOS and watchOS support
- Loggy is available under the Apache 2 license. See the LICENSE file.