title: How To Call NSLog in Nativescript on iOS
body: <blockquote>
    <p>Programming Nativescript on a laptop with a terminal only 100x wide
    looks like this:</p>
  </blockquote>
  
  <p><a href="https://s3.postimg.org/arqwz0utv/Screen_Shot_2016_08_16_at_11_29_39_PM.png" rel="nofollow">https://s3.postimg.org/arqwz0utv/Screen_Shot_2016_08_16_at_11_29_39_PM.png</a></p>
  
  <p>I don't know about you, but I can't even see what I'm logging from my app...</p>
  
  <h3>Here's the plan for my <code>console.log</code> module I'd like to create:</h3>
  
  <ul>
  <li>Colors based on <code>log</code>, <code>info</code>, <code>warn</code>, <code>error</code> with options to help the colorblind (me)</li>
  <li>Customizable options for every user's preference</li>
  <li>Declutter the terminal to actually make sense of what's being logged from the app</li>
  </ul>
  
  <h3>What I've tried so far:</h3>
  
  <ul>
  <li>tns-core-module <code>console</code> - tried a bunch of different things; can't even figure out how iOS logs to the terminal at all</li>
  <li>tns-core-module <code>trace</code> - tried calling <code>trace.write</code> but unsuccessful</li>
  <li>trying Swift's <code>print</code> and <code>println</code></li>
  </ul>
  
  <blockquote>
    <p>In my attempt to create a cleaner <code>console.log</code>, how do I call <code>NSLog</code>
    inside my Nativescript app?</p>
  </blockquote>
  
  <p>I have no problem calling <code>android.util.Log.v</code> on Android so that part's all set.</p>