Initial commit

This commit is contained in:
2025-02-22 10:21:07 +01:00
commit be3245ae39
15 changed files with 547 additions and 0 deletions
@@ -0,0 +1,11 @@
import Hummingbird
extension Environment {
// MARK: Computed
public var logLevel: String? {
self.get("LOG_LEVEL")
}
}
@@ -0,0 +1,9 @@
import ArgumentParser
import Logging
/// Extend `Logger.Level` so it can be used as an argument
#if hasFeature(RetroactiveAttribute)
extension Logger.Level: @retroactive ExpressibleByArgument {}
#else
extension Logger.Level: ExpressibleByArgument {}
#endif