<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Thanks for reminding me about this! Yes, that's exactly what I was hoping to find.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I just don't want to be using explicit printf() statements.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">See you tomorrow. I am hoping to push out a new version of my hello_acquaintances today. :) We'll work on the paper tomorrow morning (among other things).</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">George</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>George K. Thiruvathukal, PhD<br></div><div style="font-size:12.7272720336914px"><div style="font-size:12.7272720336914px"><i style="font-size:12.7272720336914px">Professor of Computer Science</i><span style="font-size:12.7272720336914px">, Loyola University Chicago</span><br></div><div style="font-size:12.7272720336914px"><span style="font-size:12.7272720336914px"><i>Director</i>, Center for Textual Studies and Digital Humanities</span></div><div style="font-size:12.7272720336914px"><span style="font-size:12.7272720336914px"><i>Guest Faculty</i>, Argonne National Laboratory, Math and Computer Science Division</span></div><div style="font-size:12.7272720336914px"><div style="font-size:12.7272720336914px">Editor in Chief, <a href="http://www.computer.org/portal/web/computingnow/cise" target="_blank">Computing in Science and Engineering</a> (IEEE CS/AIP)<br></div><div><span style="font-size:12.7272720336914px">(w) <a href="http://thiruvathukal.com" target="_blank">thiruvathukal.com</a> </span><span style="font-size:12.7272720336914px">(v) 773.829.4872</span><br></div><div><span style="font-size:12.7272720336914px"><br></span></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Nov 25, 2014 at 9:35 AM, Boisvert, Sebastien <span dir="ltr"><<a href="mailto:boisvert@anl.gov" target="_blank">boisvert@anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> From: <a href="mailto:biosal-bounces@lists.cels.anl.gov">biosal-bounces@lists.cels.anl.gov</a> [<a href="mailto:biosal-bounces@lists.cels.anl.gov">biosal-bounces@lists.cels.anl.gov</a>] on behalf of George K. Thiruvathukal [<a href="mailto:gkt@cs.luc.edu">gkt@cs.luc.edu</a>]<br>
> Sent: Tuesday, November 25, 2014 9:12 AM<br>
> To: <a href="mailto:biosal@lists.cels.anl.gov">biosal@lists.cels.anl.gov</a><br>
> Subject: [BIOSAL] Thorium - logging?<br>
<span class="">><br>
><br>
><br>
><br>
> Quick Thorium question...<br>
><br>
><br>
> Is there any sort of logging framework for Thorium?<br>
<br>
</span>There are the LTTng tracepoints, and some "custom" tracepoints. LTTng is very useful to trace race conditions.<br>
<br>
There are already instrumentation for events such as thorium_actor:receive_enter.<br>
<span class=""><br>
<br>
> Owing to a bit of a bug, I am suddenly seeing the need for a way to log distributed events (in example/application-oriented codes).<br>
<br>
</span>If the ordering of these distributed events is important, than LTTng is the tool to use in my opinion.<br>
<br>
For any message that is received, there is a tracepoint event already instrumented.<br>
<span class=""><br>
><br>
><br>
> In the simplest form, something like a log(format, args) would do the trick. What I would like is some way to prefix the output with the actor name (number) so I could filter out various logging events.<br>
<br>
</span>In your case, I suppose that this could work for you:<br>
<br>
thorium_actor_log(self, format, args);<br>
<br>
example:<br>
<br>
thorium_actor_log(self, "foo = %d bar= %d", 42, 99);<br>
<br>
which would print<br>
<br>
[LOG] 2014-11-24T21:14:29+00:00 my_cool_actor_script/1234 says: foo= 42 bar= 99<br>
<br>
The first iteration of that would write to stdout, if that's all right with you.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
><br>
><br>
> Best,<br>
> George<br>
><br>
><br>
><br>
><br>
><br>
> George K. Thiruvathukal, PhD<br>
><br>
> Professor of Computer Science, Loyola University Chicago<br>
><br>
> Director, Center for Textual Studies and Digital Humanities<br>
> Guest Faculty, Argonne National Laboratory, Math and Computer Science Division<br>
> Editor in Chief, Computing in<br>
>  Science and Engineering (IEEE CS/AIP)<br>
><br>
> (w)<br>
> <a href="http://thiruvathukal.com" target="_blank">thiruvathukal.com</a> (v) 773.829.4872<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
</div></div></blockquote></div><br></div>