Swiftpack.co - Package - icanzilb/TimelaneCore

Timelane Core

Timelane Icon

The core logging package for Timelane

You would usually use a higher level package which provides helpers to use with certain libraries like TimelaneCombine.

In case you would like to report events directly to Timelane or you'd like to add Timelane support for a new library, this is the package to consider.

Logging subscriptions

To plot a lane for a subscription called "My Subscription":

// Subscription begin
let subscription = Timelane.Subscription(name: "My Subscription")
subscription.begin(source: "MyFile.swift:120")

// Successfully end subscription
subscription.end(state: .completed)

// End with failure
subscription.end(state: .error("Error Message"))

Logging events

To plot a lane with the values and events for a subscription called "My Subscription":

let subscription = Timelane.Subscription(name: "My Subscription")

subscription.event(value: .value(String(describing: 10)), source: "MyFile.swift:120")
subscription.event(value: .value(String(describing: 20)), source: "MyFile.swift:120")

subscription.end(state: .completed)
// or
subscription.end(state: .error("My Error"))

Installation

Swift Package Manager

I . Automatically in Xcode:

  • Click File > Swift Packages > Add Package Dependency...
  • Use the package URL https://github.com/icanzilb/TimelaneCore to add TimelaneCombine to your project.

II . Manually in your Package.swift file add:

.package(url: "https://github.com/icanzilb/TimelaneCore", from: "1.0.0")

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate TimelaneCore into your Xcode project using CocoaPods, add it to your Podfile:

pod 'TimelaneCore', '~> 1.0'

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate TimelaneCore into your Xcode project using Carthage, add it in your Cartfile:

github "icanzilb/TimelaneCore" ~>1.0

Demo

The Timelane package contains a demo app at: https://github.com/icanzilb/timelane.

License

Copyright (c) Marin Todorov 2020 This package is provided under the MIT License.

Github

link
Stars: 53

Dependencies

Used By

Total: 0

Releases

TimelaneCore 1.0.13 - 2020-08-26 07:08:37

Fixes a Xcode12 warning

TimelaneCore 1.0.12 - 2020-07-16 15:41:47

Updates Carthage deployment targets

TimelaneCore 1.0.11 - 2020-07-04 15:41:42

TimelaneCore 1.0.10 - 2020-05-24 21:57:38

Exposes some internals to testable importing

TimelaneCore 1.0.9 - 2020-05-24 14:53:49

Minor improvements in code

TimelaneCore 1.0.8 - 2020-04-16 22:45:57

Correctly supporting all platforms for Carthage

TimelaneCore 1.0.7 - 2020-04-16 20:37:50

Adds more supported platforms to Carthage build

TimelaneCore 1.0.6 - 2020-03-19 22:04:08

Adding tests to stabilize development

TimelaneCore 1.0.5 - 2020-03-16 20:06:01

Resolving versioning issues

TimelaneCore 1.0.4 - 2020-03-16 20:01:51

Reverts a commit that causes TimelaneCombine to fail

TimelaneCore 1.0.3 - 2020-03-10 20:56:59

Adds Carthage support

Timelane 1.0.2 - 2020-03-09 08:08:07

Adds a CocoaPod spec file

TimelaneCore 1.0.1 - 2020-03-04 07:37:34

  • fixing typos, mechanical errors
  • lowering the deployment target to allow for apps compatible with older platforms to still profile

TimelaneCore 1.0 - 2020-02-28 09:51:19

TimelaneCore 1.0

Pre-release.3 - 2020-02-28 08:03:15

Pre-release.3

Prerelease.2 - 2020-02-19 13:00:14

Prerelease.2

Prerelease.1 - 2020-02-13 21:02:08

Pre-release version 1