Logging configuration. Added logging support in srv.
Replaced log_message and log_error with logger calls.
Fixed typo.
Added logging capabilites to srv