Change API

API closer to that of Android's Log API. Also added line number and  log type character.