Skip to content

Commit

Permalink
Adding Example Use Code (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
leogdion authored Nov 27, 2023
1 parent 71e4a96 commit 485d9fd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ internal struct VirtualMachine: Loggable {
internal typealias LoggingSystemType = BushelLogging

internal static let loggingCategory: BushelLogging.Category = .machine

func run () {
Self.logger.debug("Starting Run")
...
}
...
}
```
Expand All @@ -113,7 +118,11 @@ Now you can simply use the _new_ `Loggable` type:
```swift
internal struct VirtualMachine: BushelLoggable {
internal static let loggingCategory: BushelLogging.Category = .machine
...

func run () {
Self.logger.debug("Starting Run")
...
}
}
```

Expand All @@ -123,4 +132,4 @@ Further documentation is available at [the Swift Package Index.](https://swiftpa

# License

This code is distributed under the MIT license. See the [LICENSE](https://github.com/brightdigit/FelinePine/LICENSE) file for more info.
This code is distributed under the MIT license. See the [LICENSE](https://github.com/brightdigit/FelinePine/LICENSE) file for more info.
12 changes: 11 additions & 1 deletion Sources/FelinePine/Documentation.docc/Documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ internal struct VirtualMachine: Loggable {
internal typealias LoggingSystemType = BushelLogging

internal static let loggingCategory: BushelLogging.Category = .machine

func run () {
Self.logger.debug("Starting Run")
...
}

...
}
```
Expand All @@ -82,7 +88,11 @@ Now you can simply use the _new_ `Loggable` type:
```swift
internal struct VirtualMachine: BushelLoggable {
internal static let loggingCategory: BushelLogging.Category = .machine
...

func run () {
Self.logger.debug("Starting Run")
...
}
}
```

Expand Down

0 comments on commit 485d9fd

Please sign in to comment.