Improve logging: use constants for ERROR/INFO/DEBUG prefixes and add TRACE level, also ensure _logger_default doesn't mis-report kept when repaied