mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-26 00:05:20 +00:00
So we can use `.<category name>` to simplify the code. Search/Replace Strategy: Search text: `category: SecureLogger.` Replace text: `category: .`
21 lines
744 B
Swift
21 lines
744 B
Swift
//
|
|
// OSLog+Categories.swift
|
|
// bitchat
|
|
//
|
|
// This is free and unencumbered software released into the public domain.
|
|
// For more information, see <https://unlicense.org>
|
|
//
|
|
|
|
import os.log
|
|
|
|
extension OSLog {
|
|
private static let subsystem = "chat.bitchat"
|
|
|
|
static let noise = OSLog(subsystem: subsystem, category: "noise")
|
|
static let encryption = OSLog(subsystem: subsystem, category: "encryption")
|
|
static let keychain = OSLog(subsystem: subsystem, category: "keychain")
|
|
static let session = OSLog(subsystem: subsystem, category: "session")
|
|
static let security = OSLog(subsystem: subsystem, category: "security")
|
|
static let handshake = OSLog(subsystem: subsystem, category: "handshake")
|
|
}
|