Giter Site home page Giter Site logo

roblabs / messages-extensions Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 11 KB

A Swift Package that offers convenient code for logging to aid in understanding how the MSMessagesAppViewController event handlers work.

Swift 100.00%
imessage-apps imessage-extensions imessage

messages-extensions's Introduction

Messages_Extensions

A Swift Package that offers convenient code for logging to aid in understanding how the MSMessagesAppViewController event handlers work.

Usage

To install using the Swift Package Manager, add the following package to the dependencies in your Package.swift file:

Add to your Package.Dependency

dependencies: [
  .package(url: "https://github.com/roblabs/Messages-Extensions.git", from: "1.0.0")
]

Add to your Target.Dependency

targets: [
  .target(
    name: "yourProduct",
    dependencies: [.product(name: "Messages-Extensions")]
  ),
]

Then add the following imports and calls in any Swift file in your module.

import Messages_Extensions
import OSLog

// Log an event
OSLog.logEvent(.event, "Creating MSMessage layout")

// Begin & end a signpost
OSLog.logEvent(.begin, "MSMessage")
// do something...
OSLog.logEvent(.end, "MSMessage")

Example

Filter with MSMessage to help cut the logs.

[com.roblabs.log-Messages], viewDidLoad(), line: 162, ๐Ÿ“
[com.roblabs.log-Messages], viewWillLayoutSubviews(), line: 122, ๐Ÿ“
[com.roblabs.log-Messages], viewDidLayoutSubviews(), line: 117, ๐Ÿ“
[com.roblabs.log-Messages], viewWillAppear(_:), line: 137, ๐Ÿ“
willBecomeActive(with:), line: 21, MSMessage: Extension State
didBecomeActive(with:), line: 38, MSMessage: Extension State
willTransition(to:), line: 22, MSMessage: Presentation Styles
didTransition(to:), line: 37, MSMessage: Presentation Styles
willResignActive(with:), line: 48, MSMessage: Extension State
didResignActive(with:), line: 57, MSMessage: Extension State
didStartSending(_:conversation:), line: 75, MSMessage: Tracking Messages
willResignActive(with:), line: 48, MSMessage: Extension State
didResignActive(with:), line: 57, MSMessage: Extension State
willBecomeActive(with:), line: 21, MSMessage: Extension State
didBecomeActive(with:), line: 38, MSMessage: Extension State
didTransition(to:), line: 37, MSMessage: Presentation Styles
willTransition(to:), line: 22, MSMessage: Presentation Styles
didTransition(to:), line: 37, MSMessage: Presentation Styles
[com.roblabs.log-Messages], collectionView(_:didSelectItemAt:), line: 260, message.summaryText: "New Message from iMessage App sent")

messages-extensions's People

Contributors

roblabs avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.