Added factory methods to cache and logger protocol, introduced logger events