<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How do set log level when [print] ing? (debug, normal, error, fatal)]]></title><description><![CDATA[<p>Sometimes I want to debug and see all my print statements, but most times not</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12035/how-do-set-log-level-when-print-ing-debug-normal-error-fatal</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 17:11:48 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/12035.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 05 May 2019 14:33:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How do set log level when [print] ing? (debug, normal, error, fatal) on Sun, 05 May 2019 14:33:50 GMT]]></title><description><![CDATA[<p>Sometimes I want to debug and see all my print statements, but most times not</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12035/how-do-set-log-level-when-print-ing-debug-normal-error-fatal</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12035/how-do-set-log-level-when-print-ing-debug-normal-error-fatal</guid><dc:creator><![CDATA[Faranta]]></dc:creator><pubDate>Sun, 05 May 2019 14:33:50 GMT</pubDate></item><item><title><![CDATA[Reply to How do set log level when [print] ing? (debug, normal, error, fatal) on Sun, 05 May 2019 14:46:33 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/faranta">@Faranta</a> A bit uncertain about what you are asking.<br />
A [print] object will simply print everything that it receives on its inlet to the terminal.<br />
The Pd Terminal Log level you can change in the terminal window...... top left..... but I think you know that.<br />
You can set the Log level at Pd startup with a -d flag........  <a href="https://puredata.info/docs/faq/commandline" rel="nofollow">https://puredata.info/docs/faq/commandline</a><br />
Which you can use in the standard way by scripting it in a shortcut or a batch file, or if you want it to work when a &quot;pd&quot; patch opens Pd then you can add it to &quot;File&quot; &quot;Preferences&quot; &quot;Startup&quot; ...... down at the bottom of that window &quot;Startup Flags&quot;.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12035/how-do-set-log-level-when-print-ing-debug-normal-error-fatal/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12035/how-do-set-log-level-when-print-ing-debug-normal-error-fatal/2</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Sun, 05 May 2019 14:46:33 GMT</pubDate></item><item><title><![CDATA[Reply to How do set log level when [print] ing? (debug, normal, error, fatal) on Sun, 05 May 2019 15:39:55 GMT]]></title><description><![CDATA[<p>Thanks. That's unfortunate. I tried to make my own logger object that encapsulates print but I don't really understand how creation arguments work properly <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/frowning.png" title=":(" alt=":(" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12035/how-do-set-log-level-when-print-ing-debug-normal-error-fatal/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12035/how-do-set-log-level-when-print-ing-debug-normal-error-fatal/3</guid><dc:creator><![CDATA[Faranta]]></dc:creator><pubDate>Sun, 05 May 2019 15:39:55 GMT</pubDate></item><item><title><![CDATA[Reply to How do set log level when [print] ing? (debug, normal, error, fatal) on Sun, 05 May 2019 17:28:46 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/faranta">@Faranta</a> Creation arguments are variables that are interpreted as the object is created (loaded).<br />
When you make your own abstraction you can use them too.<br />
An object [whatever 1 2 x y foo] will have [$1] replaced by 1 and [symbol $3] replaced by x within the abstraction.  The $ variables that are replaced must be in an object.  $ variables in messages are replaced by atoms of messages coming into those messages.<br />
I had a go at this a while ago..... <a href="https://forum.pdpatchrepo.info/topic/9774/pure-data-noob/4" rel="nofollow">https://forum.pdpatchrepo.info/topic/9774/pure-data-noob/4</a></p>
<p>[print] has one creation argument that will be printed in the console so a [print this] that receives &quot;2&quot; will print &quot;this 2&quot;.<br />
Not what you want.  But an abstraction [my-print this that the other] with [print $1] etc. inside?</p>
<p>The log output to the terminal that comes from Pd (some from Pd and some from the tk/tcl code) can be redirected again with command line flags....<br />
-stderr          -- send printout to standard error instead of GUI<br />
-nostderr        -- send printout to GUI instead of standard error (true by default)<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12035/how-do-set-log-level-when-print-ing-debug-normal-error-fatal/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12035/how-do-set-log-level-when-print-ing-debug-normal-error-fatal/4</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Sun, 05 May 2019 17:28:46 GMT</pubDate></item><item><title><![CDATA[Reply to How do set log level when [print] ing? (debug, normal, error, fatal) on Sun, 05 May 2019 21:14:00 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/faranta">@Faranta</a> You can build your own log system that captures and prints messages sent to it. This abstraction does this by establishing one central [text define log] where all incoming messages of all [logprint] objects are stored. This can of course be refined and expanded: <a href="/uploads/files/1557090753424-logprint.pd">logprint.pd</a></p>
<p><img src="/uploads/files/1557090738826-bildschirmfoto-vom-2019-05-05-23-09-49.png" alt="Bildschirmfoto vom 2019-05-05 23-09-49.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12035/how-do-set-log-level-when-print-ing-debug-normal-error-fatal/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12035/how-do-set-log-level-when-print-ing-debug-normal-error-fatal/5</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Sun, 05 May 2019 21:14:00 GMT</pubDate></item></channel></rss>