Adding log functionality and changing loggers to private