Skip to content

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

Notifications You must be signed in to change notification settings

RaghavMangrola/StreamLog

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

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages