<div dir="ltr">on Date: Wed, 01 Nov 2017 10:58:38 -0700 Max Moiseev &lt;<a href="mailto:moiseev@apple.com">moiseev@apple.com</a>&gt; wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I believe you are looking for the «one true way of doing logging» that is community accepted, but it does not have to be in the standard library to be that. A standalone package would do just as well. swift-server-dev mailing list might be a better place to discuss this idea.<br></blockquote><div><br></div><div>this is only tangentially relevant to what op is asking for - i remember having to do something like this to trace every function enter / exit into a log:</div><div><br></div><div>func foo() {</div><div>    enter() { defer exit() }</div><div>    ...</div><div>    ...</div><div>}</div><div><br></div><div>and copy-paste that mantra at the beginning of every function. the enter / exit would do some printing of the method name (#function) among other things.</div><div><br></div><div>it was a bit annoying manually doing so in every method, and one of course can dream of some automated built-in facility to the same effect. until that time, manual tricks like this will do.</div><div><br></div><div>Mike</div><div><br></div></div></div></div>