Skip to content

Instantly share code, notes, and snippets.

@neil-wu
neil-wu / SystemLog.swift
Last active August 29, 2015 14:28 — forked from kristopherjohnson/SystemLog.swift
Demo of using the Apple System Log (ASL) API from Swift
// Note: This must be used in an Xcode project that contains a bridging header
// that includes <asl.h>
import Foundation
/// Provides high-level methods to access the raw data in
/// an ASL message.
struct SystemLogEntry {
/// Key-value pairs read from ASL message
let data: [String : String]
@neil-wu
neil-wu / Makefile
Created September 8, 2018 02:28 — forked from rweichler/Makefile
HOOK C++ FUNCTION
SDK=/var/root/code/iPhoneOS7.1.sdk
CCPP=clang++ -isysroot $(SDK)
CC=clang -isysroot $(SDK)
all: cat cat.dylib
clean:
rm -f cat cat.dylib