1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-07 20:10:08 +02:00

👌 Tweak logger verbosity

This commit is contained in:
2022-02-12 14:58:49 +01:00
parent 0ad5049785
commit 6cd1d78572

View File

@ -27,25 +27,25 @@ class Log {
static func err(_ item: Any) {
if Verbosity.error.isApplicable() {
print("[ERR] \(item)")
print("[E] \(item)")
}
}
static func warn(_ item: Any) {
if Verbosity.warning.isApplicable() {
print("[WRN] \(item)")
print("[W] \(item)")
}
}
static func info(_ item: Any) {
if Verbosity.info.isApplicable() {
print(item)
print("\(item)")
}
}
static func perf(_ item: Any) {
if Verbosity.performance.isApplicable() {
print(item)
print("[P] \(item)")
}
}