LOG_PRINT statements in log.h

388 views
Skip to first unread message

jerry yin

unread,
Jun 2, 2014, 8:29:27 PM6/2/14
to snip...@googlegroups.com
Hi Trevor,

A lot of LOG_PRINT statements seems to be in source code, however I'm not sure how to make use of this directly for debugging. I understand that this function is defined in log.h and I didn't define the NDEBUG. However, none of the LOG_PRINT statements appear in the benchmark-app0-run0.log. So how to print out the LOG_PRINT explicitly?

Thanks,
Jer

Wim Heirman

unread,
Jun 3, 2014, 5:31:10 AM6/3/14
to snip...@googlegroups.com
Jer,

This is Graphite's original logging infrastructure, we haven't really used this but it should still be functional. You should first set the log/enabled=true configuration, then set log/enabled_modules and log/disabled_modules with a space-separated list of modules you want logging to be enabled/disabled for. I'm not sure what exactly the module names are, I think they correspond to the file name where the LOG statement is (with or without .cc, you'll have to experiment).

Regards,
Wim



--
--
--
You received this message because you are subscribed to the Google
Groups "Sniper simulator" group.
To post to this group, send email to snip...@googlegroups.com
To unsubscribe from this group, send email to
snipersim+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/snipersim?hl=en

---
You received this message because you are subscribed to the Google Groups "Sniper simulator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snipersim+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tiancong Wang

unread,
Feb 21, 2017, 5:43:28 PM2/21/17
to Sniper simulator
Hi Wim,

I have tested on the newest version. You can set log/enabled = true so that all the LOG_PRINT will be printed out, except you specify modules in log/disabled_modules. If you only want to enable several modules, you only need to set log/enabled_modules to be several file names, separated by whitespaces. The file names don't have to specify path, i.e. a single name is fine and should include extension name (e.g. .cc). I hope this helps future researchers who's using this tool.

Aaron

unread,
Dec 25, 2017, 8:38:45 PM12/25/17
to Sniper simulator
Thanks Tiancong,
your answer helps me a lot.
Do you know the function or meaning of app*.log and sim*.log? 
app*.log and sim*.log seem to be independent. 

Thanks,
Aaron
Reply all
Reply to author
Forward
0 new messages