macro_rules! ray {
() => { ... };
(json: $($value:expr),+ $(,)?) => { ... };
($($value:expr),+ $(,)?) => { ... };
}Expand description
Create a Ray handle for fluent chaining or log Serialize values immediately.
ray!() returns a handle, and ray!(value, ...) logs and returns the handle
so you can keep chaining. Serialization errors are converted to strings.
For Debug-only types, use ray!().raw(&value).
ray!(json: value) is an alias for explicit JSON logging.
use ray::ray;
ray!("hello").green().label("init");
ray!("first", "second");
ray!(json: "explicit json").label("json");
ray!().log(&"structured").label("log");