Moved logging functions from header to source file
Specifying category on the command line.