<p>Hi Solomon,</p>
<p>I assume you've read <a href="http://www.erlang.org/doc/man/disk_log.html">http://www.erlang.org/doc/man/disk_log.html</a> , and that you're trying to read a log written in internal format.</p>
<p>In that case, you'll want to verify how the log is written by the disk_log code. As the documentation states it is repairable, my guess is that it is probably binary terms with additional housekeeping. I had a quick peek at the code and, unfortunately, it doesn't look easy to figure out the exact format. It is binary terms, but the housekeeping values elude me. :-(</p>

<p>With external format, it's up to the logger to define the format. Thus much easier to handle.</p>
<p>Sorry, can't be of more help.</p>
<p>Regards,<br>
Robby</p>
<div class="gmail_quote">On Mar 14, 2014 10:21 AM, "Solomon" <<a href="mailto:solomon.wzs@gmail.com">solomon.wzs@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi,<br><br>I want to read the disk_log by C, but I don't know the format of disk_log. Is there any documents about this?<br><br>Thanks.<br></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div>