Comments (4)
When you're writing a plugin, you shouldn't start the log service, as the host program will set the logging for you.
from cbat_tools.
Thanks Ivan! I was looking in the wrong directory for the log files. Is there also a way to have the logs printed to stdout
?
from cbat_tools.
You can use the --log-dir
parameter or the BAP_LOG_DIR
environment variable to specify the location of the log file, e.g., bap . --log-dir=.
will create a log file in the current folder.
While the Bap_main.init
interface indeed allows specifying a formatter or channel as the looging output, the command line option itself is only accepting a directory. We can update the command line, and let it accept more options, including logging to stderr.
But, I honestly, don't see any reason to redirect it to a channel. You can always open the log
file in emacs and enable the auto-revert-mode
(if it is not enabled by default, it is a good idea to always use it). If you're not using emacs, I believe that all modern text editors are able to reload files automatically on change.
Finally, you can just use cat
to output the log, e.g, bap ./exe <your-options> --log-dir=.; cat log
from cbat_tools.
Thanks a bunch!
from cbat_tools.
Related Issues (20)
- Refuted goals not showing when checking loop invariants
- Freshened versions of memory not printed in model
- Multiple Z3 Queries
- Broken docker receipe HOT 1
- Test framework does not call Bap_main.init
- Initialize the memory pool with it's "real" values HOT 2
- Smtlib identifier difficulties
- Missing refuted goals
- memcpy_example_2 hangs on some machines
- Incorrectly selecting registers in input_regs HOT 2
- Error when analyze shared library HOT 6
- user_func_spec sometimes picks the wrong input/output vars for the summary
- Indirect jumps lead to incorrect assumptions HOT 2
- Reuse of BIR virtual variables
- Improve model of heap memory management HOT 2
- lookup_sub_handler error case HOT 1
- Efficiency for model of initialized data sections
- External SMT solver bare "or" crashes HOT 2
- Incorrect detection of intrinsic functions when there is no BIL lifter available HOT 1
- Missing output from wp
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cbat_tools.