You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 30, 2021. It is now read-only.
At the moment reverie does have a logger. To use it in a tool, one needs to initialize it with tools_helper::logger::init() and pass an environment variable TOOL_LOG=level to the reverie binary. Then, all the log crate macros like info!, debug! etc log their output to stdout.
It would be really nice if the tool could also log things somewhere other than stdout, to a file for example.
The text was updated successfully, but these errors were encountered:
Thanks for submitting this issue. logging to file should be relatively easy, with one caveat: we probably want allocate a predefined FD number, preferably close to 1024. Because open an fd in the very same memory address space has visible effects to the tracee, for instance, if you just open a log file with fd=3, then the musl build script would fail, because it has bellow script in its configure:
exec 3>&1 1>config.mak
In short, it expects configure script to be opened as fd=3, which is true if you run the script directly from shell environment.
I'm not saying this should the API or anything but with something like this, all the details of how to initialize the bakend are hidden away from the tool and reverie is free to do the right thing for each of these.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
At the moment
reverie
does have a logger. To use it in a tool, one needs to initialize it withtools_helper::logger::init()
and pass an environment variableTOOL_LOG=level
to the reverie binary. Then, all thelog
crate macros likeinfo!
,debug!
etc log their output tostdout
.It would be really nice if the tool could also log things somewhere other than
stdout
, to a file for example.The text was updated successfully, but these errors were encountered: