Skip to content

Commit c8a217b

Browse files
committed
Remove logger and update readme.
1 parent 5c5e305 commit c8a217b

File tree

5 files changed

+4
-55
lines changed

5 files changed

+4
-55
lines changed

Package.resolved

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ let package = Package(
1818
.package(url: "https://github.com/colinc86/MathJaxSwift", from: "3.2.2"),
1919
.package(url: "https://github.com/exyte/SVGView", from: "1.0.4"),
2020
.package(url: "https://github.com/kean/Nuke", from: "11.3.1"),
21-
.package(url: "https://github.com/apple/swift-log", from: "1.4.4"),
2221
.package(url: "https://github.com/Kitura/swift-html-entities", from: "4.0.1")
2322
],
2423
targets: [
@@ -28,7 +27,6 @@ let package = Package(
2827
"MathJaxSwift",
2928
"SVGView",
3029
"Nuke",
31-
.product(name: "Logging", package: "swift-log"),
3230
.product(name: "HTMLEntities", package: "swift-html-entities")
3331
]),
3432
.testTarget(

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ A SwiftUI view that renders LaTeX.
2525
Add the dependency to your package manifest file.
2626

2727
```swift
28-
.package(url: "https://github.com/colinc86/LaTeXSwiftUI", from: "1.0.0")
28+
.package(url: "https://github.com/colinc86/LaTeXSwiftUI", from: "1.0.3")
2929
```
3030

3131
## ⌨️ Usage

Sources/LaTeXSwiftUI/Models/Logger.swift

Lines changed: 0 additions & 40 deletions
This file was deleted.

Sources/LaTeXSwiftUI/Models/Renderer.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ internal class Renderer {
9191
dataCache = try DataCache(name: "mathJaxRenderDataCache")
9292
}
9393
catch {
94-
logError("Error creating DataCache instance: \(error)")
94+
NSLog("Error creating DataCache instance: \(error)")
9595
dataCache = nil
9696
}
9797

@@ -101,7 +101,7 @@ internal class Renderer {
101101
mathjax = try MathJax(preferredOutputFormat: .svg)
102102
}
103103
catch {
104-
logError("Error creating MathJax instance: \(error)")
104+
NSLog("Error creating MathJax instance: \(error)")
105105
mathjax = nil
106106
}
107107
}
@@ -139,7 +139,7 @@ extension Renderer {
139139
newBlocks.append(ComponentBlock(components: newComponents))
140140
}
141141
catch {
142-
logError("Error rendering block: \(error)")
142+
NSLog("Error rendering block: \(error)")
143143
newBlocks.append(block)
144144
continue
145145
}

0 commit comments

Comments
 (0)