summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2020-01-07 14:19:38 +0100
committerAndrej Mihajlov <and@mullvad.net>2020-01-07 14:19:38 +0100
commit54d6b88002a372c1e24535a08f211fef7bf7c679 (patch)
treeb17f04a53114f0d8c3714ba860bddf94c2d21b50
parentcb312bb061a958f45d91966ae22acebd5404a41c (diff)
parentfbd07b542b8602c86d645e5a09fadc856d05b4f4 (diff)
downloadmullvadvpn-54d6b88002a372c1e24535a08f211fef7bf7c679.tar.xz
mullvadvpn-54d6b88002a372c1e24535a08f211fef7bf7c679.zip
Merge branch 'add-log-categories'
-rw-r--r--ios/PacketTunnel/Logging.swift21
1 files changed, 21 insertions, 0 deletions
diff --git a/ios/PacketTunnel/Logging.swift b/ios/PacketTunnel/Logging.swift
new file mode 100644
index 0000000000..a510f35544
--- /dev/null
+++ b/ios/PacketTunnel/Logging.swift
@@ -0,0 +1,21 @@
+//
+// Logging.swift
+// PacketTunnel
+//
+// Created by pronebird on 18/12/2019.
+// Copyright © 2019 Amagicom AB. All rights reserved.
+//
+
+import Foundation
+import os
+
+private let kLogSubsystem = "net.mullvad.vpn.packet-tunnel"
+
+/// A Wireguard event log
+let wireguardLog = OSLog(subsystem: kLogSubsystem, category: "WireGuard")
+
+/// A general tunnel provider log
+let tunnelProviderLog = OSLog(subsystem: kLogSubsystem, category: "Tunnel Provider")
+
+/// A WireguardDevice log
+let wireguardDeviceLog = OSLog(subsystem: kLogSubsystem, category: "WireGuard Device")