summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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")