<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Configure logback/log4j to log "org.drools.planner" INFO for this:<br>
<pre class=""><a id="d0e2063">INFO Solving with random seed (0).
INFO Starting with time spend (0), score (-6), new best score (-6).
INFO Step index (0), time spend (4), score (-3), new best score (-3), accepted move size (12) for picked step ([Queen-1] 1 @ 0 => 3).
INFO Step index (1), time spend (7), score (-1), new best score (-1), accepted move size (12) for picked step ([Queen-0] 0 @ 0 => 1).
INFO Step index (2), time spend (10), score (0), new best score (0), accepted move size (12) for picked step ([Queen-3] 3 @ 0 => 2).
INFO Solved at step index (2) with time spend (10) for best score (0) with average calculate count per second (7300).</a></pre>
and DEBUG for this:<br>
<br>
<pre class=""><a id="d0e2150">INFO Solving with random seed (0).
INFO Starting with time spend (0), score (-6), new best score (-6).
DEBUG Ignoring not doable move ([Queen-0] 0 @ 0 => 0).
DEBUG Move score (-4), accept chance (1.0) for move ([Queen-0] 0 @ 0 => 1).
DEBUG Move score (-4), accept chance (1.0) for move ([Queen-0] 0 @ 0 => 2).
DEBUG Move score (-4), accept chance (1.0) for move ([Queen-0] 0 @ 0 => 3).
...
DEBUG Move score (-3), accept chance (1.0) for move ([Queen-1] 1 @ 0 => 3).
...
DEBUG Move score (-3), accept chance (1.0) for move ([Queen-2] 2 @ 0 => 3).
...
DEBUG Move score (-4), accept chance (1.0) for move ([Queen-3] 3 @ 0 => 3).
INFO Step index (0), time spend (6), score (-3), new best score (-3), accepted move size (12) for picked step ([Queen-1] 1 @ 0 => 3).
...</a></pre>
<br>
<br>
Op 22-05-11 17:37, felipebr schreef:
<blockquote cite="mid:1306078629134-2972003.post@n3.nabble.com"
type="cite">
<pre wrap="">I see that in the drools planner examples I can see the debug information on
the console when I run solver examples but I can´t find where the logger is.
Sorry I know its a newbie question but I really don´t know it.
How can I get this debug information to see each steps and score ?
Best regards
--
View this message in context: <a class="moz-txt-link-freetext" href="http://drools.46999.n3.nabble.com/How-to-get-debug-information-on-Planner-tp2972003p2972003.html">http://drools.46999.n3.nabble.com/How-to-get-debug-information-on-Planner-tp2972003p2972003.html</a>
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
With kind regards,
Geoffrey De Smet</pre>
</body>
</html>