Skip to content

Simplify work with OSLog withing Swift

License

Notifications You must be signed in to change notification settings

lumoscompany/simlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simlog

Simplify work with OSLog withing Swift

Installation

.package(
    url: "https://github.com/lumoscompany/simlog.git",
    .upToNextMajor(from: "0.1.0")
)

Usage

import Simlog

extension Simlog.Category {
    static let resources = Category("resources")
}

private extension Simlog.Category {
    init(_ named: String) {
        self.init(subsystem: "com.example.module", category: named)
    }
}

log.info("Can't locate color named '\(name)'", category: .resources)

Authors