mirror of
https://github.com/apple/swift-log
synced 2026-11-24 03:47:49 +00:00
Improve readability by extracting separate types to their own files ### Motivation: `Logger.swift` is >2000 LoC, which makes it hard to navigate both for contributors and users of `swift-log`. Widely different concepts, such as concrete `LogHandler` implementations, are mixed with core types such as `Logger.Level`. Extracting separate types should make it easier to find what you are looking for. Closes #441 ### Modifications: * Extract all (not `Logger`-namespaced) types from `Logging.swift` to separate files. * Rename `Logging.swift` to `Logger.swift`, as this is the only remaining top-level type. * Change `LoggingSystem.factory` from `fileprivate` to `internal` to be accessible from `Logger.swift`. ### Result: Each (non-private) top-level type lives in a separate file, named after the type. --------- Co-authored-by: Vladimir Kukushkin <kukushechkin@mac.com>