use log::debug; let pos = Position { x: 3.5, y: -1.5 }; debug!("New position: x: {}, y: {}", pos.x, pos.y); debug!(target: "location", "New position: x: {}, y: {}", pos.x, pos.y);