Parametrized loggable trait

The loggable trait is also now adjusted, so that it is possible to use own loggable trait. Tests have been also updated.