add autolog
Merge pull request #39 from mpizza/fn_auto_console

add autolog.
fix bugs
Merge pull request #41 from seiyugi/fix_autolog_bugs

fix bugs
add filename and line number
Merge pull request #42 from mpizza/autolog_add_filename_linenumber

add filename and line number
Support additional logging messages #15

* fix EIDIR bug