vibetunnel/ios/VibeTunnel/Configuration/AppConfig.swift
Igor Tarasenko 9fad6301a0
feat: Add Bonjour/mDNS service discovery for iOS app (#226)
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2025-07-05 11:34:36 +01:00

18 lines
624 B
Swift

import Foundation
/// App-wide configuration settings.
/// Provides centralized configuration for logging and other app behaviors.
enum AppConfig {
/// Set the logging level for the app
/// Change this to control verbosity of logs
static func configureLogging() {
#if DEBUG
// In debug builds, default to info level to reduce noise
// Change to .verbose only when debugging binary protocol issues
Logger.globalLevel = .info
#else
// In release builds, only show warnings and errors
Logger.globalLevel = .warning
#endif
}
}