2.5 logging

More suble approach on the "swallowing issue" from https://github.com/cakephp/debug_kit/pull/85