tag:github.com,2008:https://github.com/caltechlibrary/sidetrack/releases Release notes from sidetrack 2022-01-11T00:52:03Z tag:github.com,2008:Repository/295883149/v2.0.1 2022-01-11T00:52:54Z Release 2.0.1 <p>This version adds a backward compatibility function <code>logr</code> that is identical to <code>log</code>.</p> mhucka tag:github.com,2008:Repository/295883149/v2.0.0 2021-07-12T19:59:45Z Release 2.0.0 <p>This introduces <strong>backwards-incompatible changes</strong> to the API, and adds one new function.</p> <p>In recognition that modern Python code more often uses f-strings, the function <code>logr</code> is now named <code>log</code>, and what was previously <code>log</code> is now called <code>logf</code>. Users who called the <code>log</code> function with single strings will not notice any difference; users who called it with more than one argument (a string and format arguments) will get an error; and users who called <code>logr</code> will also get an error, about an undefined function. The new set of log functions is more logically organized:</p> <ul> <li><code>log</code> takes a single argument, a string. It does not apply <code>format</code> to the string.</li> <li><code>loglist</code> is like <code>log</code>, except it accepts multiple strings. It prints them one line at time.</li> <li><code>logf</code> takes a single string as the first argument and optionally multiple arguments after that. It passes the optional arguments to <code>format</code>.</li> </ul> <p>An advantage of the new scheme is that it is more obvious when a message string will be passed to <code>format</code>. Previously, if a string contained a character that had special meaning to <code>format</code> (particularly <code>{</code>) was passed to <code>log</code>, it would result in an unexpected error. Now, the requirement to use the variant <code>logf</code> hopefully makes it more obvious that the arguments are being treated specially.</p> mhucka tag:github.com,2008:Repository/295883149/v1.4.0 2021-03-04T16:27:12Z Release 1.4.0 <p>This version adds a new option to <code>set_debug(...)</code>: the flag <code>show_package</code>, which will cause Sidetrack to prefix messages with the name of the Python package containing the source file from where the log function was called. This flag is useful if you use Sidetrack in multiple packages, or import packages that also use Sidetrack.</p> mhucka tag:github.com,2008:Repository/295883149/v1.3.0 2020-11-25T23:10:15Z Release 1.3.0 <p>This version changes the logging level used by Sidetrack. The level is now set to the value of <a href="https://docs.python.org/3/library/logging.html#levels" rel="nofollow">logging.DEBUG</a> + 1 (that is, the numeric value 11). This solves a problem caused by Python packages that turn off <code>DEBUG</code>-level logging at import time: previously, if such a package was imported after Sidetrack was loaded, it would end up disabling Sidetrack as a side-effect. This should no longer happen. (Plus, we can now legitimately say that <strong>Sidetrack goes to 11</strong>.)</p> mhucka tag:github.com,2008:Repository/295883149/v1.2.0 2020-09-24T20:20:08Z Release 1.2.0 <p>This version brings no changes to the API, but does remove a dependency on <code>setuptools</code>, and brings internal changes that solve problems in using Sidetrack inside binaries produced by <a href="https://pyinstaller.readthedocs.io" rel="nofollow">PyInstaller</a>. The internal changes remove a clever but problematic scheme for retrieving package metadata, and replaces it with a more conventional approach (storing version info directly into <code>__init__.py</code>) with accompanying automation in the <code>Makefile</code> to make it all work. Beneficial side-effect: the <code>import sidetrack</code> statement should run faster now.</p> mhucka tag:github.com,2008:Repository/295883149/v1.1.0 2020-09-22T21:44:04Z Release 1.1.0 <p>This release brings an API change. The previous parameter <code>show_thread</code> on <code>set_debug(...)</code> has been removed in favor of a new, more general parameter: <code>extra</code>. This new parameter can be used to add text to every debug output line. The text can contain Python logging package <code>%</code> format codes; thus, it can be used to achieve the same effect as the <code>show_thread</code> parameter by using a value that contains <code>%(threadName)s</code>. More importantly, <code>extra</code> provides more capabilities, and is thus a more general solution than the <code>show_thread</code> parameter was.</p> <p>Other changes include the following:</p> <ul> <li>Allow the destination parameter for <code>set_debug(...)</code> to be a stream, not just '-' or a file.</li> <li>Fix documentation to explain that the default output is <code>sys.stderr</code>, not <code>sys.stdout</code>.</li> <li>Additional documentation fixes and edits.</li> </ul> <p>The file <a href="/caltechlibrary/sidetrack/blob/v1.1.0/CHANGES.md">CHANGES</a> contains a more complete change log that includes information about previous releases.</p> mhucka tag:github.com,2008:Repository/295883149/v1.0.1 2020-09-18T01:48:44Z Release 1.0.1 <p>The following are the changes in this release:</p> <ul> <li>Minor edits to the README file for grammar and clarity</li> <li>Overhaul of the Makefile for greater release automation</li> </ul> <p>There are no functional or other changes in this release.</p> mhucka tag:github.com,2008:Repository/295883149/v1.0.0 2020-09-16T22:18:43Z Release 1.0.0 <p>This is the first complete release of Sidetrack, a simple debug tracing package for Python. Please see the <a href="https://github.com/caltechlibrary/sidetrack">front page of the GitHub project repository</a> for more information about Sidetrack and how to use it.</p> mhucka