Log incoming

doing this mainly for the tests, still lots of stuffs to complete