Added log module.
Swig Module added.
Moving to module debug, and build fixes.
Inlining that function didn't work well.
And missing inline for another function.
Merge branch 'log' into dev