Logging incorporated

Includes all different log levels and context in messages.