Contents

ianpartridge/swift-log-syslog

This Swift package implements a logging backend that logs to [`syslog`](https://en.wikipedia.org/wiki/Syslog).

Usage

Add https://github.com/ianpartridge/swift-log-syslog.git as a dependency in your Package.swift.

Then, during your application startup, do:

import Logging
import LoggingSyslog

// Initialize the syslog logger
LoggingSystem.bootstrap(SyslogLogHandler.init)

Elsewhere in your application, when you need to log, do:

// Create a logger (or re-use one you already have)
let logger = Logger(label: "MyApp")

// Log!
logger.info("Hello World!")

Package Metadata

Repository: ianpartridge/swift-log-syslog

Default branch: master

README: README.md