v0.2.5-pre.010.fix.001

This commit is contained in:
2026-08-20 11:17:12 +02:00
parent 5bf9651038
commit c0b131bf6f
97 changed files with 2277 additions and 655 deletions

View File

@@ -1,11 +1,11 @@
// file: crates/ksp-logging-lib/src/macros.rs
// version: 1
// version: 2
/// Emits a KSP error event with an explicit owning target.
#[macro_export]
macro_rules! error {
(target: $target:expr, $($argument:tt)+) => {{
$crate::__private_tracing::error!(target: $target, $($argument)+);
$crate::tracing::error!(target: $target, $($argument)+);
}};
}
@@ -13,7 +13,7 @@ macro_rules! error {
#[macro_export]
macro_rules! warn {
(target: $target:expr, $($argument:tt)+) => {{
$crate::__private_tracing::warn!(target: $target, $($argument)+);
$crate::tracing::warn!(target: $target, $($argument)+);
}};
}
@@ -21,7 +21,7 @@ macro_rules! warn {
#[macro_export]
macro_rules! info {
(target: $target:expr, $($argument:tt)+) => {{
$crate::__private_tracing::info!(target: $target, $($argument)+);
$crate::tracing::info!(target: $target, $($argument)+);
}};
}
@@ -29,7 +29,7 @@ macro_rules! info {
#[macro_export]
macro_rules! debug {
(target: $target:expr, $($argument:tt)+) => {{
$crate::__private_tracing::debug!(target: $target, $($argument)+);
$crate::tracing::debug!(target: $target, $($argument)+);
}};
}
@@ -37,7 +37,7 @@ macro_rules! debug {
#[macro_export]
macro_rules! trace {
(target: $target:expr, $($argument:tt)+) => {{
$crate::__private_tracing::trace!(target: $target, $($argument)+);
$crate::tracing::trace!(target: $target, $($argument)+);
}};
}
@@ -45,10 +45,10 @@ macro_rules! trace {
#[macro_export]
macro_rules! error_span {
(target: $target:expr, $name:expr) => {{
$crate::Span::__from_tracing($crate::__private_tracing::error_span!(target: $target, $name))
$crate::Span::__from_tracing($crate::tracing::error_span!(target: $target, $name))
}};
(target: $target:expr, $name:expr, $($field:tt)+) => {{
$crate::Span::__from_tracing($crate::__private_tracing::error_span!(target: $target, $name, $($field)+))
$crate::Span::__from_tracing($crate::tracing::error_span!(target: $target, $name, $($field)+))
}};
}
@@ -56,10 +56,10 @@ macro_rules! error_span {
#[macro_export]
macro_rules! warn_span {
(target: $target:expr, $name:expr) => {{
$crate::Span::__from_tracing($crate::__private_tracing::warn_span!(target: $target, $name))
$crate::Span::__from_tracing($crate::tracing::warn_span!(target: $target, $name))
}};
(target: $target:expr, $name:expr, $($field:tt)+) => {{
$crate::Span::__from_tracing($crate::__private_tracing::warn_span!(target: $target, $name, $($field)+))
$crate::Span::__from_tracing($crate::tracing::warn_span!(target: $target, $name, $($field)+))
}};
}
@@ -67,10 +67,10 @@ macro_rules! warn_span {
#[macro_export]
macro_rules! info_span {
(target: $target:expr, $name:expr) => {{
$crate::Span::__from_tracing($crate::__private_tracing::info_span!(target: $target, $name))
$crate::Span::__from_tracing($crate::tracing::info_span!(target: $target, $name))
}};
(target: $target:expr, $name:expr, $($field:tt)+) => {{
$crate::Span::__from_tracing($crate::__private_tracing::info_span!(target: $target, $name, $($field)+))
$crate::Span::__from_tracing($crate::tracing::info_span!(target: $target, $name, $($field)+))
}};
}
@@ -78,10 +78,10 @@ macro_rules! info_span {
#[macro_export]
macro_rules! debug_span {
(target: $target:expr, $name:expr) => {{
$crate::Span::__from_tracing($crate::__private_tracing::debug_span!(target: $target, $name))
$crate::Span::__from_tracing($crate::tracing::debug_span!(target: $target, $name))
}};
(target: $target:expr, $name:expr, $($field:tt)+) => {{
$crate::Span::__from_tracing($crate::__private_tracing::debug_span!(target: $target, $name, $($field)+))
$crate::Span::__from_tracing($crate::tracing::debug_span!(target: $target, $name, $($field)+))
}};
}
@@ -89,9 +89,9 @@ macro_rules! debug_span {
#[macro_export]
macro_rules! trace_span {
(target: $target:expr, $name:expr) => {{
$crate::Span::__from_tracing($crate::__private_tracing::trace_span!(target: $target, $name))
$crate::Span::__from_tracing($crate::tracing::trace_span!(target: $target, $name))
}};
(target: $target:expr, $name:expr, $($field:tt)+) => {{
$crate::Span::__from_tracing($crate::__private_tracing::trace_span!(target: $target, $name, $($field)+))
$crate::Span::__from_tracing($crate::tracing::trace_span!(target: $target, $name, $($field)+))
}};
}