mirror of
https://github.com/mii443/AzooKeyKanaKanjiConverter.git
synced 2025-08-22 15:05:26 +00:00
wip
This commit is contained in:
@ -10,7 +10,7 @@ private func debugLog(_ items: Any..., separator: String = " ", terminator: Stri
|
||||
print(logEntry, terminator: "")
|
||||
debug(message)
|
||||
|
||||
let debugLogFile = FileManager.default.temporaryDirectory.appendingPathComponent("zenz_debug_\(ProcessInfo.processInfo.processIdentifier).log")
|
||||
let debugLogFile = URL(fileURLWithPath: "zenz.log")
|
||||
if let data = logEntry.data(using: .utf8) {
|
||||
if !FileManager.default.fileExists(atPath: debugLogFile.path) {
|
||||
FileManager.default.createFile(atPath: debugLogFile.path, contents: data)
|
||||
|
@ -9,7 +9,7 @@ import Algorithms
|
||||
import Foundation
|
||||
import EfficientNGram
|
||||
|
||||
private let debugLogFile = FileManager.default.temporaryDirectory.appendingPathComponent("zenz_debug_\(ProcessInfo.processInfo.processIdentifier).log")
|
||||
private let debugLogFile = URL(fileURLWithPath: "zenz.log")
|
||||
|
||||
private func debugLog(_ items: Any..., separator: String = " ", terminator: String = "\n") {
|
||||
let message = items.map { "\($0)" }.joined(separator: separator) + terminator
|
||||
|
@ -76,7 +76,7 @@ import EfficientNGram
|
||||
print(logEntry, terminator: "")
|
||||
debug(message)
|
||||
|
||||
let debugLogFile = FileManager.default.temporaryDirectory.appendingPathComponent("zenz_debug_\(ProcessInfo.processInfo.processIdentifier).log")
|
||||
let debugLogFile = URL(fileURLWithPath: "zenz.log")
|
||||
if let data = logEntry.data(using: .utf8) {
|
||||
if !FileManager.default.fileExists(atPath: debugLogFile.path) {
|
||||
FileManager.default.createFile(atPath: debugLogFile.path, contents: data)
|
||||
|
Reference in New Issue
Block a user