This commit is contained in:
mii443
2025-07-24 22:04:29 +09:00
parent de3f560200
commit d460a58e61
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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

View File

@ -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)