Replace log crate with tracing

This commit is contained in:
Jackson Coxson
2025-10-23 09:49:38 -06:00
parent 18b8b7295c
commit a297eed156
91 changed files with 323 additions and 342 deletions

View File

@@ -146,8 +146,8 @@ path = "src/installcoordination_proxy.rs"
[dependencies]
idevice = { path = "../idevice", features = ["full"], default-features = false }
tokio = { version = "1.43", features = ["full"] }
log = { version = "0.4" }
env_logger = { version = "0.11" }
tracing = { version = "0.1.41" }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# tun-rs = { version = "1.5", features = ["async"] }
sha2 = { version = "0.10" }
ureq = { version = "3" }

View File

@@ -9,7 +9,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("activation")
.about("mobileactivationd")

View File

@@ -13,7 +13,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("afc")
.about("Manage files on the device")

View File

@@ -7,7 +7,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("amfi")
.about("Mess with developer mode")

View File

@@ -12,7 +12,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("remotexpc")
.about("Get services from RemoteXPC")

View File

@@ -12,7 +12,7 @@ mod pcap;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("amfi")
.about("Capture Bluetooth packets")

View File

@@ -11,7 +11,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("companion_proxy")
.about("Apple Watch things")

View File

@@ -10,7 +10,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("crash_logs")
.about("Manage crash logs")

View File

@@ -12,7 +12,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("remotexpc")
.about("Get services from RemoteXPC")

View File

@@ -8,7 +8,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("idevicediagnostics")
.about("Interact with the diagnostics interface of a device")

View File

@@ -12,7 +12,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("remotexpc")
.about("Gets a sysdiagnose")

View File

@@ -8,7 +8,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("core_device_proxy_tun")
.about("Start a tunnel")
.arg(

View File

@@ -6,7 +6,7 @@ use idevice::usbmuxd::UsbmuxdConnection;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let mut muxer = UsbmuxdConnection::default().await.unwrap();
let res = muxer.get_devices().await.unwrap();

View File

@@ -8,7 +8,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("core_device_proxy_tun")
.about("Start a tunnel")

View File

@@ -7,7 +7,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("ideviceinstaller")
.about("Install/upgrade apps on an iOS device (AFC + InstallationProxy)")

View File

@@ -10,7 +10,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("installationcoordination_proxy")
.about("")

View File

@@ -8,7 +8,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("core_device_proxy_tun")
.about("Start a tunnel")

View File

@@ -10,7 +10,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("simulate_location")
.about("Simulate device location")

View File

@@ -8,7 +8,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("lockdown")
.about("Start a tunnel")

View File

@@ -9,7 +9,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("core_device_proxy_tun")
.about("Start a tunnel")

View File

@@ -15,7 +15,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("mobilebackup2")
.about("Mobile Backup 2 tool for iOS devices")

View File

@@ -13,7 +13,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("core_device_proxy_tun")
.about("Start a tunnel")

View File

@@ -6,7 +6,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("notifications")
.about("start notifications")
.arg(

View File

@@ -7,7 +7,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("os_trace_relay")
.about("Relay system logs")

View File

@@ -9,7 +9,7 @@ use idevice::{
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("pair")
.about("Pair with the device")

View File

@@ -1,6 +1,6 @@
use idevice::bt_packet_logger::BtPacketKind;
use log::warn;
use tokio::io::{AsyncWrite, AsyncWriteExt};
use tracing::warn;
// Classic PCAP (big-endian) global header for DLT_BLUETOOTH_HCI_H4_WITH_PHDR (201)
const PCAP_GLOBAL_HEADER_BE: [u8; 24] = [

View File

@@ -10,7 +10,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("pcapd")
.about("Capture IP packets")

View File

@@ -7,7 +7,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("preboard")
.about("Mess with developer mode")

View File

@@ -8,7 +8,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("process_control")
.about("Query process control")

View File

@@ -11,7 +11,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("remotexpc")
.about("Get services from RemoteXPC")

View File

@@ -10,7 +10,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("restore_service")
.about("Interact with the Restore Service service")

View File

@@ -8,7 +8,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("screen_shot")
.about("take screenshot")
.arg(

View File

@@ -7,7 +7,7 @@ mod common;
#[tokio::main]
async fn main() {
env_logger::init();
tracing_subscriber::fmt::init();
let matches = Command::new("syslog_relay")
.about("Relay system logs")