My Logging Best Practices (2020)
> Log after, not before<p>My problem with that is what if the program crashes or produces an error. It's good to know what the program was attempting to do.<p>Imagine the output<p><pre><code>    Successfully connected to DB.
    Successfully read config file. 
    Uncaught Exception: NullPointerException
</code></pre>
vs.<p><pre><code>    Will connect to DB...
    Will read config file...
    Will connect to API server...
    Uncaught Exception: NullPointerException</code></pre>