Adding custom logging method.