Got these ideas from @fbs and @danobi.
Generally, it would be nice to provide logging facilities to developers and users so that they could have better visibility of bpftrace internal states.
Implementing a logging framework for bpftrace. It would be much easier to deal with these issues with the right infrastructure.
-w as in gcc).#1444
N/A
In other projects I've really liked macro style loggers. For example:
LOG(ast) << "i'm an ast log";
LOG(codegen) << "i'm a codegen log";
LOG << "default log";
Most helpful comment
In other projects I've really liked macro style loggers. For example: