Massive log extension

Fixes various log issues.

@lznuaa @ch3cooli: Any comments?