prole/prole-app/Sources/Debug.swift
chrisfu 197c72dd7a Refactor prole-app and establish temporary release process
- Moved prole-tools-app to prole-app at the project root to make it self-contained for transition to its own repository.
- Created prole-tools-app/dist/ directory to host build artifacts.
- Generated distribution artifacts (Prole Tools.app and Prole Tools.zip) using prole-app/build.sh package.
- Checked in the generated artifacts to prole-tools-app/dist/ (bypassing .gitignore for temporary release process).
Changes Summary
•
Renamed directory prole-tools-app/ to prole-app/.
•
Populated prole-tools-app/dist/ with the latest build output from prole-app/build.sh.
•
Staged all changes, including the forced addition of ignored artifacts in prole-tools-app/dist/.
2026-01-18 15:04:23 -08:00

17 lines
446 B
Swift

import Foundation
enum Debug {
static let isEnabled: Bool = true
static func log(_ message: @autoclosure () -> String) {
guard isEnabled else { return }
let ts = ISO8601DateFormatter().string(from: Date())
FileHandle.standardOutput.write(("[ProleStatus] " + ts + " " + message() + "\n").data(using: .utf8)!)
}
}
@inline(__always)
func dlog(_ message: @autoclosure () -> String) {
Debug.log(message())
}