Log module updates and cleanups.

Signed-off-by: Tomasz CEDRO <CeDeROM@tlen.pl>