summaryrefslogtreecommitdiffhomepage
path: root/ios/PacketTunnel/WireGuardAdapter/WireGuardLogLevel+Logging.swift
blob: a3835539474e35da711a06a7dd309b6b5c2b833f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//
//  WireGuardLogLevel+Logging.swift
//  PacketTunnel
//
//  Created by pronebird on 15/07/2022.
//  Copyright © 2025 Mullvad VPN AB. All rights reserved.
//

import Foundation
import MullvadLogging
import WireGuardKit

extension WireGuardLogLevel {
    var loggerLevel: Logger.Level {
        switch self {
        case .verbose:
            return .debug
        case .error:
            return .error
        }
    }
}