Skip to content

luohaoyuan/Pulse

 
 

Repository files navigation

pulse-small

Pulse is a logging system with structured persistent storage.

PulseUI allows you to quickly preview logs in your iOS or tvOS apps. Share logs, and use Pulse macOS app to search and filter them. PulseUI is available for GitHub sponsors.


Usage

Use log() function to send logs.

log("Your message")
log(level: .fatal, system: .auth, "Configuration is missing")
/// Logs the message in the console (if enabled) and saves it persistently.
///
/// - note: Logger automatically captures stack traces for .fatal logs.
///
public func log(level: Logger.Level = .debug,
                system: Logger.System = .default,
                category: Logger.Category = .default,
                _ text: @autoclosure () -> String)

All of the logged messages are stored persistently using Core Data. You get full access to all of the recorded messages at any time using Logger.Store.

let message = try logger.store.allMessage()

// NSPersistentStoreContainer
let container = logger.store.container

PulseUI

PulseUI allows you to quickly preview logs in your iOS or tvOS apps. Share logs, and use Pulse macOS app to search and filter them. PulseUI is available for GitHub sponsors.


iOS Console

Build a console right into your iOS apps.

Screen Shot 2020-05-04 at 13 50 26 Screen Shot 2020-05-04 at 10 43 28


macOS App

Share your Pulse database and view it on your Mac. Use advanced search to filter your messages.

Screen Shot 2020-05-05 at 10 47 53

Minimum Requirements

Nuke Swift Xcode Platforms
Pulse 0.3 Swift 5.2 Xcode 11.3 iOS 11.0 / watchOS 4.0 / macOS 10.13 / tvOS 11.0

License

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

About

Structured Logging System

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 100.0%