Skip to content

Commit

Permalink
Export Logging module (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
sushichop authored Mar 11, 2023
1 parent 2925f69 commit c758db7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Add method to support flushing log message. [#79](https://github.com/sushichop/Puppy/pull/79)
- Make `dateFormat` function more efficient. [#81](https://github.com/sushichop/Puppy/pull/81)
- Update `Logging` module to 1.5.2 or later. [#82](https://github.com/sushichop/Puppy/pull/82)
- Export `Logging` module. [#83](https://github.com/sushichop/Puppy/pull/83)

## [0.6.0](https://github.com/sushichop/Puppy/releases/tag/0.6.0) (2022-11-29)

Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ Logging to multiple transports(e.g. console and syslog) as a backend for `apple/

```swift
import Puppy
import Logging

let console = ConsoleLogger("com.example.yourapp.console")
let syslog = SystemLogger("com.example.yourapp.syslog")
Expand Down
2 changes: 1 addition & 1 deletion Sources/Puppy/PuppyLogHandler.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#if canImport(Logging)
import Foundation
import Logging
@_exported import Logging

public struct PuppyLogHandler: LogHandler, Sendable {
public var logLevel: Logger.Level = .info
Expand Down
3 changes: 0 additions & 3 deletions Tests/PuppyTests/PuppyLogHandlerTests.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import XCTest
import Puppy
#if canImport(Logging)
import Logging
#endif // canImport(Logging)

final class PuppyLogHandlerTests: XCTestCase {

Expand Down

0 comments on commit c758db7

Please sign in to comment.