frida_rs/
console.rs

1pub use crate::plumbing::console::{error, log, warn};
2
3///Write to the console of a Frida-based application.
4///
5///The exact behaviour depends on how Frida is integrated. This is equivalent
6///to calling `console.log(line)` in the JavaScript API.
7#[macro_export]
8macro_rules! console_log {
9    ($($t:tt)*) => (log(&format_args!($($t)*).to_string()))
10}
11
12///Write to the console of a Frida-based application.
13///
14///The exact behaviour depends on how Frida is integrated. This is equivalent
15///to calling `console.warn(line)` in the JavaScript API.
16#[macro_export]
17macro_rules! console_warn {
18    ($($t:tt)*) => (warn(&format_args!($($t)*).to_string()))
19}
20
21///Write to the console of a Frida-based application.
22///
23///The exact behaviour depends on how Frida is integrated. This is equivalent
24///to calling `console.err(line)` in the JavaScript API.
25#[macro_export]
26macro_rules! console_error {
27    ($($t:tt)*) => (error(&format_args!($($t)*).to_string()))
28}