Skip to content

Repository files navigation

StreamLog

A Swift package that mirrors os.Logger while streaming debug logs over the network.

Usage

import StreamLog

StreamLog.configure(
    subsystem: Bundle.main.bundleIdentifier ?? "com.app",
    serviceType: "_fieldlog._tcp"
)

let log = StreamLogger(category: "network")
log.info("Request started")

In release builds, streaming is compiled out and only os.Logger is used.

About

Swift package that mirrors os.Logger while streaming debug logs over the network

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages