Logging with python logger.

Add possibility to log with differrent level and different target (file and console)